-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
63 lines (54 loc) · 1.63 KB
/
.env.example
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
# Django settings
DJANGO_ENV=production # Options: development, staging, production
DEBUG=False
SECRET_KEY=your-secret-key-here
ALLOWED_HOSTS=localhost,127.0.0.1
CSRF_TRUSTED_ORIGINS=https://*.example.com,http://localhost:8000
CORS_ALLOWED_ORIGINS=https://example.com,http://localhost:8000
# Database
DATABASE_URL=postgres://user:password@localhost:5432/dbname
DB_CONN_MAX_AGE=600
DB_CONN_HEALTH_CHECKS=True
# Redis
REDIS_URL=redis://redis:6379/1
REDIS_PASSWORD=your-redis-password
REDIS_SSL=True # Set to True for production with SSL
# Cache
CACHE_TIMEOUT=300
CACHE_BACKEND=django_redis.cache.RedisCache
# Email settings
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST=smtp.example.com
EMAIL_PORT=587
EMAIL_HOST_PASSWORD=your-email-password
EMAIL_USE_TLS=True
# Security
SECURE_SSL_REDIRECT=True
SESSION_COOKIE_SECURE=True
CSRF_COOKIE_SECURE=True
SECURE_BROWSER_XSS_FILTER=True
SECURE_CONTENT_TYPE_NOSNIFF=True
SECURE_HSTS_SECONDS=31536000
SECURE_HSTS_INCLUDE_SUBDOMAINS=True
SECURE_HSTS_PRELOAD=True
# Stripe settings
STRIPE_PUBLISHABLE_KEY=your-publishable-key
STRIPE_SECRET_KEY=your-secret-key
STRIPE_API_VERSION=2023-10-16
STRIPE_WEBHOOK_SECRET=your-webhook-secret
STRIPE_CURRENCY=usd
# Sentry
SENTRY_DSN=your-sentry-dsn
SENTRY_ENVIRONMENT=production
SENTRY_TRACES_SAMPLE_RATE=0.2
SENTRY_SEND_DEFAULT_PII=False
# Performance
CONN_MAX_AGE=60
ATOMIC_REQUESTS=True
# AWS S3 (Optional - for media/static files)
AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-key
AWS_STORAGE_BUCKET_NAME=your-bucket-name
AWS_S3_REGION_NAME=your-region