FossilRepo

fossilrepo / .env.production.example
Blame History Raw 41 lines
1
# Fossilrepo — Production Environment Variables
2
#
3
# Copy to .env and fill in your values.
4
# NEVER commit the actual .env file.
5
6
# --- Django ---
7
DJANGO_SECRET_KEY= # REQUIRED — generate with: python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
8
DJANGO_DEBUG=false
9
DJANGO_ALLOWED_HOSTS=fossilrepo.example.com
10
11
# --- Database ---
12
POSTGRES_DB=fossilrepo
13
POSTGRES_USER=fossilrepo
14
POSTGRES_PASSWORD= # REQUIRED — use a strong password
15
POSTGRES_HOST=localhost
16
POSTGRES_PORT=5432
17
18
# --- Redis ---
19
REDIS_URL=redis://localhost:6379/1
20
CELERY_BROKER=redis://localhost:6379/0
21
22
# --- Email (production: SES or SMTP) ---
23
DJANGO_EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
24
EMAIL_HOST=email-smtp.us-east-1.amazonaws.com
25
EMAIL_PORT=587
26
[email protected]
27
28
# --- S3 / Object Storage (optional — for file attachments and snapshots) ---
29
USE_S3=false
30
AWS_ACCESS_KEY_ID=
31
AWS_SECRET_ACCESS_KEY=
32
AWS_STORAGE_BUCKET_NAME=fossilrepo
33
AWS_S3_ENDPOINT_URL= # Leave empty for AWS S3, set for MinIO/R2/etc.
34
35
# --- CORS / CSRF ---
36
CORS_ALLOWED_ORIGINS=https://fossilrepo.example.com
37
CSRF_TRUSTED_ORIGINS=https://fossilrepo.example.com
38
39
# --- Sentry (optional — error tracking) ---
40
SENTRY_DSN=
41

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button