2026-05-02 17:32:19 +03:30
|
|
|
DB_HOST=127.0.0.1
|
2026-05-21 14:20:46 +03:30
|
|
|
# Local Docker (docker compose up -d): 5432
|
|
|
|
|
# Remote DB via SSH tunnel (-L 5433:127.0.0.1:5432): 5433
|
2026-05-02 17:32:19 +03:30
|
|
|
POSTGRES_PORT=5432
|
|
|
|
|
POSTGRES_USER=montime
|
2026-05-21 14:20:46 +03:30
|
|
|
POSTGRES_PASSWORD=montime
|
2026-05-02 17:32:19 +03:30
|
|
|
POSTGRES_DB=montime
|
|
|
|
|
# Dev only: auto-sync schema from entities (do not use true in production)
|
|
|
|
|
DB_SYNC=true
|
2026-05-11 14:17:20 +03:30
|
|
|
|
|
|
|
|
JWT_SECRET=change_me_to_a_long_random_secret
|
|
|
|
|
OTP_HASH_SECRET=change_me_to_a_long_random_secret
|
|
|
|
|
SUPER_ADMIN_MOBILE=09123456789
|
2026-05-18 14:37:02 +03:30
|
|
|
# Min seconds between OTP requests for the same mobile
|
|
|
|
|
OTP_REQUEST_COOLDOWN_SECONDS=60
|
|
|
|
|
# Max OTP requests per mobile per rolling hour
|
|
|
|
|
OTP_REQUEST_MAX_PER_HOUR=5
|
2026-05-11 14:17:20 +03:30
|
|
|
# Dev/test only: returns OTP code in API response instead of sending SMS
|
|
|
|
|
AUTH_RETURN_OTP=true
|
2026-05-13 18:48:38 +03:30
|
|
|
|
2026-05-21 17:57:27 +03:30
|
|
|
# Local folder for business images (served at /uploads/...)
|
|
|
|
|
UPLOAD_DIR=uploads
|
|
|
|
|
|
2026-05-18 14:37:02 +03:30
|
|
|
# Comma-separated frontend origins (required in production for browser clients)
|
2026-05-21 14:20:46 +03:30
|
|
|
# Include both dev ports if calling API directly (without Vite /api proxy)
|
|
|
|
|
CORS_ORIGINS=https://montime.ir,https://adm.montime.ir,http://localhost:5173,http://localhost:5174
|
2026-05-18 14:37:02 +03:30
|
|
|
|
2026-05-30 11:13:52 +03:30
|
|
|
# SMS — used when AUTH_RETURN_OTP is not true
|
|
|
|
|
# Provider: trez (default, smspanel.Trez.ir) | 0098 (legacy)
|
|
|
|
|
SMS_PROVIDER=trez
|
2026-05-13 18:48:38 +03:30
|
|
|
SMS_USERNAME=
|
|
|
|
|
SMS_PASSWORD=
|
2026-05-25 13:22:13 +03:30
|
|
|
# SMS_API_KEY= # alias for SMS_PASSWORD
|
2026-05-30 11:13:52 +03:30
|
|
|
# Trez/Raygan sender line (PhoneNumber), e.g. 90002847
|
2026-05-13 18:48:38 +03:30
|
|
|
SMS_SENDER=
|
2026-05-30 11:13:52 +03:30
|
|
|
# Trez panel base URL and send path (defaults shown)
|
|
|
|
|
# SMS_BASE_URL=http://smspanel.Trez.ir
|
|
|
|
|
# SMS_SEND_PATH=/SendMessageWithCode.ashx
|
|
|
|
|
# SMS_OTP_TEMPLATE=کد ورود منتایم: {code}
|
2026-05-25 13:22:13 +03:30
|
|
|
# SMS_TIMEOUT_MS=20000
|
2026-05-30 11:13:52 +03:30
|
|
|
# --- legacy 0098 only (SMS_PROVIDER=0098) ---
|
|
|
|
|
# SMS_TRANSPORT=soap
|
|
|
|
|
# SMS_DOMAIN=0098
|
2026-05-25 19:12:32 +03:30
|
|
|
|
2026-05-31 09:18:34 +03:30
|
|
|
# Optional: log Server-Timing to PM2 stdout (total;dur=… per request)
|
|
|
|
|
# LOG_SERVER_TIMING=true
|