-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.env
More file actions
68 lines (56 loc) · 2.58 KB
/
example.env
File metadata and controls
68 lines (56 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Squache Configuration
# Copy this file to example.env and customize your settings:
# cp example.env .env
#
# Then start the services:
# docker compose up -d
# =============================================================================
# PostgreSQL Database
# =============================================================================
POSTGRES_USER=squache
POSTGRES_PASSWORD=squache_password
POSTGRES_DB=squache
# Connection URL (must match the values above)
DATABASE_URL=postgres://squache:squache_password@postgres:5432/squache
# =============================================================================
# Backend API Server
# =============================================================================
NODE_ENV=production
# JWT Authentication
# Generate a secure secret: openssl rand -hex 32
JWT_SECRET=change-this-in-production-use-a-random-string
JWT_EXPIRES_IN=7d
# =============================================================================
# URLs and CORS
# =============================================================================
# For local development, use localhost
# For remote access, change to your server's IP or domain
BACKEND_URL=http://localhost:3010
FRONTEND_URL=http://localhost:3011
CORS_ORIGIN=http://localhost:3011
# =============================================================================
# Admin Credentials
# =============================================================================
# The admin account is created on first run
# If ADMIN_PASS is empty, a random password will be generated
# Check logs for the generated password: docker compose logs backend | grep -A5 "SQUACHE ADMIN"
ADMIN_EMAIL=admin@squache.local
ADMIN_PASS=
# =============================================================================
# Frontend
# =============================================================================
# Public API URL (accessible from browser)
NEXT_PUBLIC_API_URL=http://localhost:3010
NEXT_PUBLIC_SITE_URL=http://localhost:3011
# Internal API URL (for SSR in Docker) - usually doesn't need changing
API_URL_INTERNAL=http://backend:3010
# =============================================================================
# Squid Proxy Configuration (Advanced)
# =============================================================================
# These paths are inside the container - usually don't need changing
SQUID_LOG_PATH=/var/log/squid/access.log
SQUID_CACHE_DIR=/var/spool/squid
SSL_CERT_PATH=/etc/squid/ssl/squid-ca.crt
# Upstream Proxies (optional, JSON array)
# Example: [{"name": "vpn-us", "type": "vpn", "host": "proxy.example.com", "port": 1080}]
UPSTREAM_PROXIES=[]