chore(deploy): add production caddy setup

This commit is contained in:
2026-07-14 10:43:12 +03:30
parent c122aab57c
commit e99060de41
13 changed files with 195 additions and 20 deletions

24
.env.production.example Normal file
View File

@@ -0,0 +1,24 @@
APP_ENV=production
MONGO_DB_NAME=gapido_auth
JWT_SECRET_KEY=replace-with-a-long-random-production-secret
JWT_ISSUER=gapido-auth
ACCESS_TOKEN_TTL_SECONDS=900
REFRESH_TOKEN_TTL_SECONDS=604800
OTP_TTL_SECONDS=120
OTP_MAX_ATTEMPTS=5
OTP_REQUEST_LIMIT=3
OTP_REQUEST_WINDOW_SECONDS=300
# Choose exactly one real provider in production: kavenegar or sms_ir.
SMS_PROVIDER=sms_ir
KAVENEGAR_API_KEY=
KAVENEGAR_LOGIN_TEMPLATE=login-otp
SMS_IR_API_KEY=replace-with-real-sms-ir-key
SMS_IR_VERIFY_TEMPLATE_ID=570574
ADMIN_MOBILE=989120000000
DEMO_ENABLE_DEBUG_OTP=false
DEMO_DEBUG_SMS_TTL_SECONDS=300
GRPC_HOST=0.0.0.0
GRPC_PORT=50051