-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.production.example
More file actions
88 lines (69 loc) · 1.92 KB
/
.env.production.example
File metadata and controls
88 lines (69 loc) · 1.92 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
# ProStaff API - Production Environment Configuration
# Application
RAILS_ENV=production
RAILS_LOG_LEVEL=warn
RAILS_SERVE_STATIC_FILES=true
RAILS_MAX_THREADS=10
# Server
PORT=3000
API_PORT=3333
# Database
DATABASE_URL=postgresql://prostaff_user:CHANGE_ME_STRONG_PASSWORD@postgres:5432/prostaff_production
POSTGRES_DB=prostaff_production
POSTGRES_USER=prostaff_user
POSTGRES_PASSWORD=CHANGE_ME_STRONG_PASSWORD
DB_POOL=25
# Redis
REDIS_URL=redis://redis:6379/0
REDIS_PASSWORD=CHANGE_ME_STRONG_PASSWORD
# Security
JWT_SECRET_KEY=CHANGE_ME_GENERATE_WITH_rails_secret
SECRET_KEY_BASE=CHANGE_ME_GENERATE_WITH_rails_secret
DEVISE_JWT_SECRET_KEY=CHANGE_ME_GENERATE_WITH_rails_secret
# CORS
CORS_ORIGINS=https://prostaff.gg,https://www.prostaff.gg,https://prostaffgg.netlify.app
# External APIs
RIOT_API_KEY=RGAPI-YOUR-PRODUCTION-KEY-HERE
# Email (SendGrid, Mailgun, etc.)
SMTP_ADDRESS=smtp.sendgrid.net
SMTP_PORT=587
SMTP_USERNAME=apikey
SMTP_PASSWORD=CHANGE_ME_PRODUCTION
SMTP_DOMAIN=prostaff.gg
EMAIL_FROM=noreply@prostaff.gg
# Storage (AWS S3, etc.)
AWS_ACCESS_KEY_ID=CHANGE_ME_PRODUCTION
AWS_SECRET_ACCESS_KEY=CHANGE_ME_PRODUCTION
AWS_REGION=us-east-1
AWS_S3_BUCKET=prostaff-production
# Monitoring
SENTRY_DSN=https://your-production-sentry-dsn@sentry.io/project-id
SENTRY_ENVIRONMENT=production
SENTRY_TRACES_SAMPLE_RATE=0.1
# Performance
RACK_TIMEOUT_SERVICE_TIMEOUT=60
RACK_TIMEOUT_WAIT_TIMEOUT=30
# Rate Limiting
RATE_LIMIT_REQUESTS_PER_MINUTE=120
RATE_LIMIT_BURST=200
# Background Jobs
SIDEKIQ_CONCURRENCY=25
SIDEKIQ_REDIS_URL=redis://redis:6379/1
# Feature Flags
ENABLE_SWAGGER_UI=false
ENABLE_GRAPHIQL=false
ENABLE_PERFORMANCE_MONITORING=true
# Analytics
GOOGLE_ANALYTICS_ID=UA-XXXXXXXXX-X
# SSL/TLS
FORCE_SSL=false # nginx handles SSL
# Session
SESSION_STORE=redis
SESSION_TIMEOUT=3600
# Backup
BACKUP_RETENTION_DAYS=30
BACKUP_S3_BUCKET=prostaff-backups
# Auto-scaling (if using)
MIN_INSTANCES=2
MAX_INSTANCES=10
TARGET_CPU_UTILIZATION=70