-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
64 lines (52 loc) · 1.37 KB
/
.env.example
File metadata and controls
64 lines (52 loc) · 1.37 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
# Environment Configuration
# Copy this to .env and fill in your values
# Application
APP_NAME="Multi-Tenant SaaS"
APP_VERSION="1.0.0"
ENVIRONMENT=development
DEBUG=true
SECRET_KEY=your-super-secret-key-change-this-in-production
API_V1_PREFIX=/api/v1
# Database
DATABASE_URL=postgresql://saas_user:saas_password@postgres:5432/saas_db
DATABASE_POOL_SIZE=20
DATABASE_MAX_OVERFLOW=40
# Redis
REDIS_URL=redis://redis:6379/0
REDIS_CACHE_TTL=3600
# JWT Settings
JWT_SECRET_KEY=another-secret-key-for-jwt
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7
# CORS
CORS_ORIGINS=http://localhost:3000,http://localhost:8000
CORS_ALLOW_CREDENTIALS=true
# Stripe
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
STRIPE_PUBLISHABLE_KEY=pk_test_your_stripe_publishable_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
# Rate Limiting
RATE_LIMIT_ENABLED=true
RATE_LIMIT_FREE_TIER=100
RATE_LIMIT_PRO_TIER=1000
RATE_LIMIT_ENTERPRISE_TIER=10000
# Celery
CELERY_BROKER_URL=redis://redis:6379/1
CELERY_RESULT_BACKEND=redis://redis:6379/2
# Email (for future use)
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_USER=your-email@gmail.com
# SMTP_PASSWORD=your-password
# SMTP_FROM=noreply@yoursaas.com
# Logging
LOG_LEVEL=INFO
LOG_FORMAT=json
# Monitoring
SENTRY_DSN=
PROMETHEUS_ENABLED=false
# Feature Flags
ENABLE_SIGNUP=true
ENABLE_STRIPE_BILLING=true
ENABLE_AUDIT_LOGS=true