-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.docker.example
More file actions
62 lines (49 loc) · 2.03 KB
/
Copy path.env.docker.example
File metadata and controls
62 lines (49 loc) · 2.03 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
# You can generate one with:
# python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
SECRET_KEY=your-secret-key-here-change-this
# Used by external schedulers calling POST /actions/releases with X-Admin-Key
ADMIN_KEY=your-admin-webhook-key-here-change-this
DATABASE_NAME=trackwatch
DATABASE_USER=trackwatch
DATABASE_PASSWORD=your-secure-database-password
# Get these from https://developer.spotify.com/dashboard
SPOTIFY_CLIENT_ID=your-spotify-client-id
SPOTIFY_CLIENT_SECRET=your-spotify-client-secret
# Debug mode (set to True only for development)
DEBUG=False
# Public/backend hosts accepted by Django (comma-separated; do not use * in production)
ALLOWED_HOSTS=localhost,127.0.0.1,backend,trackwatch.emlopezr.com
CORS_ALLOWED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173,https://trackwatch.emlopezr.com
CSRF_TRUSTED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173,https://trackwatch.emlopezr.com
# Enable HSTS only after HTTPS is working reliably for the configured domain.
SECURE_SSL_REDIRECT=False
SECURE_HSTS_SECONDS=0
SECURE_HSTS_INCLUDE_SUBDOMAINS=False
SECURE_HSTS_PRELOAD=False
# Frontend port (default: 80)
PORT=80
# Optional: Use published component images instead of local builds
FRONTEND_IMAGE=ghcr.io/emlopezr/trackwatch-frontend:latest
BACKEND_IMAGE=ghcr.io/emlopezr/trackwatch-backend:latest
SCHEDULER_IMAGE=ghcr.io/emlopezr/trackwatch-scheduler:latest
# Frontend runtime configuration
VITE_HIDE_PUBLIC_LOGIN=false
FRONTEND_BASE_URL=http://127.0.0.1
BACKEND_PROXY_PASS=http://backend:8000
BACKEND_PROXY_HOST=backend
NGINX_RESOLVER=127.0.0.11
# Optional: Email Notifications
# Get API key from https://resend.com
RESEND_API_KEY=
ADMIN_EMAIL=
# Optional: Background Scheduler
# The scheduler runs as a separate Docker service
# Hours to check for new releases (comma-separated, 24h format)
# Default: 7am, 2pm, 9pm
SCHEDULER_HOURS=7,14,21
# Minute of the hour to run (0-59)
SCHEDULER_MINUTE=0
# Optional: Gunicorn Configuration
GUNICORN_WORKERS=2
GUNICORN_THREADS=4
GUNICORN_TIMEOUT=120