-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.env
More file actions
164 lines (140 loc) · 5.66 KB
/
Copy pathexample.env
File metadata and controls
164 lines (140 loc) · 5.66 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# ==============================================================================
# FastApi Backend - Environment Variables
# ==============================================================================
# ==============================================================================
# Application Configuration
# ==============================================================================
MODE=api/v1
API_MODE=development
API_VERSION=1.0.0
DEBUG_MODE=true
# ==============================================================================
# Application Service Ports Configuration
# ==============================================================================
API_INTERNAL_PORT=8000
API_DEBUG_PORT=8001
PROXY_PORT=8500
PRISMA_STUDIO_PORT=8501
# ==============================================================================
# Production Configuration
# ==============================================================================
GUNICORN_WORKERS=4
GUNICORN_TIMEOUT=120
WORKER_CLASS=uvicorn.workers.UvicornWorker
# ==============================================================================
# Swagger/API Documentation
# ==============================================================================
API_URL=http://localhost:8500
# ==============================================================================
# CORS Configuration
# ==============================================================================
# Allowed origins (comma-separated)
CORS_ORIGINS=http://localhost:8500,http://localhost:8001
# ==============================================================================
# PostgreSQL Docker Configuration
# ==============================================================================
DATABASE_HOST=fastapi-backend-db
DATABASE_NAME=postgres
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres
DATABASE_PORT=5432
DATABASE_SSL=false
DB_POOL_MAX=50
DB_POOL_MIN=2
DATABASE_URL=postgresql://postgres:postgres@fastapi-backend-db:5432/postgres?sslmode=disable
# ==============================================================================
# Database Pool Configuration
# ==============================================================================
DB_POOL_IDLE_TIMEOUT=30000
DB_POOL_CONNECTION_TIMEOUT=10000
# ==============================================================================
# PG Admin Configuration
# ==============================================================================
PGADMIN_EMAIL=admin@example.com
PGADMIN_PASSWORD=admin@123
PGADMIN_PORT=5050
# ==============================================================================
# Redis Configuration
# ==============================================================================
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_URL=redis://redis:6379
# ==============================================================================
# Sentry Configuration
# ==============================================================================
SENTRY_DSN=
SENTRY_TRACES_SAMPLE_RATE=1.0
SENTRY_PROFILES_SAMPLE_RATE=1.0
SENTRY_ENABLE_DEV=true
# ==============================================================================
# Security & Authentication
# ==============================================================================
# JWT Secret Key (CHANGE THIS IN PRODUCTION!)
# Generate a strong secret: openssl rand -base64 32
# ==============================================================================
# JWT Docker Configuration
# ==============================================================================
JWT_SECRET_KEY=f03b9d1cb7b54a2f99d7adcc1c8b27d318e94e9ba3f1c7d8b8e4f672c18ab4fd
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRY_MINUTES=6000
SESSION_TOKEN_EXPIRY_MINUTES=10080
REFRESH_TOKEN_EXPIRY_MINUTES=43200
BCRYPT_SALT_ROUNDS=10
# ==============================================================================
# Logging Configuration
# ==============================================================================
LOG_LEVEL=info
# Options: error, warn, info, debug
TIMEZONE=UTC
UTC=true
# ==============================================================================
# External APIs (Optional)
# ==============================================================================
# Google Cloud Storage
GOOGLE_STORAGE_BUCKET_NAME=
STORAGE_BUCKET=
STORAGE_BUCKET_ACCESS_KEY=
STORAGE_BUCKET_SECRET_KEY=
STORAGE_BUCKET_SERVER=https://kliky.sgp1.digitaloceanspaces.com
# ==============================================================================
# Email Configuration (Optional)
# ==============================================================================
EMAIL_HOST=smtp.gmail.com
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_PORT=587
EMAIL_USE_TLS=True
# ==============================================================================
# Twilio WhatsApp and SMS Configuration (Twilio - Optional)
# ==============================================================================
TWILIO_WHATSAPP_NUMBER=
TWILIO_MESSAGING_SERVICE_ID=
TWILIO_CONTENT_ID=
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_PHONE_NUMBER=
#SMS Gateway to send OTP
SMS_API_ENDPOINT=
SMS_SENDER_USERNAME=
SMS_SENDER_PASSWORD=
SMS_SENDER=
SMS_SENDER_MODE=
# ==============================================================================
# Additional API Configuration
# ==============================================================================
API_URL_STAGING=
SUPPORT_EMAIL=
SUPPORT_URL=
AUTO_MIGRATE=false
# ==============================================================================
# Authentication - Master OTP
# ==============================================================================
MASTER_OTP=123456
MASTER_ADMIN_OTP=654321
# Request Queue (enable in production)
ENABLE_REQUEST_QUEUE=true
MAX_QUEUE_SIZE=100
MAX_CONCURRENT_REQUESTS=50
# Rate Limiting
RATE_LIMIT_MAX=200