Repository navigation
Expand file tree
/
Copy path.env.production.example
More file actions
89 lines (69 loc) · 3.19 KB
/
Copy path.env.production.example
File metadata and controls
89 lines (69 loc) · 3.19 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Agent Grey - Production Environment Configuration
# Copy this file to .env.production and add your actual production values
# =============================================================================
# PRODUCTION DJANGO SETTINGS
# =============================================================================
DEBUG=False
SECRET_KEY=your-production-secret-key-change-this
DJANGO_SETTINGS_MODULE=grey_lit_project.settings.production
# Production Security
ALLOWED_HOSTS=your-domain.com
CSRF_COOKIE_SECURE=True
SESSION_COOKIE_SECURE=True
SECURE_SSL_REDIRECT=True
# =============================================================================
# PRODUCTION DATABASE
# =============================================================================
# PostgreSQL Database URL (DigitalOcean Managed Database format)
DATABASE_URL=postgres://username:password@host:port/database
# =============================================================================
# SEARCH API (REQUIRED)
# =============================================================================
# Serper API Key - Get from https://serper.dev/
SERPER_API_KEY=your-production-serper-api-key
# =============================================================================
# REDIS & BACKGROUND PROCESSING
# =============================================================================
# Redis URL (DigitalOcean Managed Redis format)
REDIS_URL=redis://username:password@host:port
# Celery Configuration
CELERY_BROKER_URL=redis://username:password@host:port/0
CELERY_RESULT_BACKEND=redis://username:password@host:port/1
# =============================================================================
# EMAIL CONFIGURATION
# =============================================================================
# Production Email Backend
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST=your-smtp-host.com
EMAIL_PORT=587
EMAIL_USE_TLS=True
EMAIL_HOST_USER=your-email@domain.com
EMAIL_HOST_PASSWORD=your-email-password
DEFAULT_FROM_EMAIL=Agent Grey <noreply@your-domain.com>
# =============================================================================
# STATIC & MEDIA FILES
# =============================================================================
# Static Files (configure for your CDN/storage)
STATIC_URL=/static/
STATIC_ROOT=/app/staticfiles
MEDIA_URL=/media/
MEDIA_ROOT=/app/media
# =============================================================================
# SECURITY (PRODUCTION)
# =============================================================================
# CSRF Protection - DigitalOcean App Platform format
CSRF_TRUSTED_ORIGINS=https://your-domain.com,https://grey-lit-app-ifa37.ondigitalocean.app
# Environment Identification
ENVIRONMENT=production
DEPLOYMENT_TYPE=digitalocean
# =============================================================================
# MONITORING & LOGGING
# =============================================================================
# Logging Level
LOG_LEVEL=WARNING
DJANGO_LOG_LEVEL=ERROR
# Sentry for Error Tracking (Recommended for Production)
SENTRY_DSN=https://your-sentry-key@your-sentry-project.ingest.sentry.io/your-project-id
SENTRY_ENVIRONMENT=production
SENTRY_TRACES_SAMPLE_RATE=0.1
SENTRY_PROFILES_SAMPLE_RATE=0.05