-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
32 lines (27 loc) · 1.04 KB
/
.env.example
File metadata and controls
32 lines (27 loc) · 1.04 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
# Copy this file to .env for local development.
# Keep real secret values in .env or your deployment platform, not in git.
# Settings module
DJANGO_SETTINGS_MODULE=config.settings.local
# Required secret. Generate a unique value for each environment.
DJANGO_SECRET_KEY=replace-me-with-a-generated-secret-key
# Local development defaults
DJANGO_DEBUG=True
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0
DJANGO_CSRF_TRUSTED_ORIGINS=http://localhost:8000,http://127.0.0.1:8000
# PostgreSQL connection used by Docker Compose.
POSTGRES_DB=trackly
POSTGRES_USER=trackly_user
POSTGRES_PASSWORD=replace-me-with-a-local-db-password
POSTGRES_HOST=db
POSTGRES_PORT=5432
# Production-only hardening defaults.
# These are read by config.settings.production.
DJANGO_SECURE_SSL_REDIRECT=True
DJANGO_SESSION_COOKIE_SECURE=True
DJANGO_CSRF_COOKIE_SECURE=True
DJANGO_SECURE_HSTS_SECONDS=31536000
DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS=True
DJANGO_SECURE_HSTS_PRELOAD=True
DJANGO_SECURE_CONTENT_TYPE_NOSNIFF=True
DJANGO_X_FRAME_OPTIONS=DENY
DJANGO_REFERRER_POLICY=same-origin