-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.staging.example
More file actions
78 lines (61 loc) · 1.6 KB
/
.env.staging.example
File metadata and controls
78 lines (61 loc) · 1.6 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
# ProStaff API - Staging Environment Configuration
# Application
RAILS_ENV=staging
RAILS_LOG_LEVEL=info
RAILS_SERVE_STATIC_FILES=true
RAILS_MAX_THREADS=5
# Server
PORT=3000
API_PORT=3333
# Database
DATABASE_URL=postgresql://prostaff_user:CHANGE_ME@postgres:5432/prostaff_staging
POSTGRES_DB=prostaff_staging
POSTGRES_USER=prostaff_user
POSTGRES_PASSWORD=CHANGE_ME
DB_POOL=10
# Redis
REDIS_URL=redis://redis:6379/0
REDIS_PASSWORD=CHANGE_ME
# 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://staging.prostaff.gg,https://staging-api.prostaff.gg
# External APIs
RIOT_API_KEY=RGAPI-YOUR-KEY-HERE
# Email (SendGrid, Mailgun, etc.)
SMTP_ADDRESS=smtp.sendgrid.net
SMTP_PORT=587
SMTP_USERNAME=apikey
SMTP_PASSWORD=CHANGE_ME
SMTP_DOMAIN=prostaff.gg
EMAIL_FROM=noreply@prostaff.gg
# Storage (AWS S3, etc.)
AWS_ACCESS_KEY_ID=CHANGE_ME
AWS_SECRET_ACCESS_KEY=CHANGE_ME
AWS_REGION=us-east-1
AWS_S3_BUCKET=prostaff-staging
# Monitoring
SENTRY_DSN=https://your-sentry-dsn@sentry.io/project-id
SENTRY_ENVIRONMENT=staging
# Performance
RACK_TIMEOUT_SERVICE_TIMEOUT=30
RACK_TIMEOUT_WAIT_TIMEOUT=30
# Rate Limiting
RATE_LIMIT_REQUESTS_PER_MINUTE=60
RATE_LIMIT_BURST=100
# Background Jobs
SIDEKIQ_CONCURRENCY=10
SIDEKIQ_REDIS_URL=redis://redis:6379/1
# Feature Flags
ENABLE_SWAGGER_UI=true
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=7200