Files
fabric_trade_server/.env.example
T
mohmdsdgandCursor 345a4a4708 Add SMS OTP, harden auth, and fix order/checkout server bugs.
Ship 4-digit OTP with rate-limit attempts, Tehran-safe expiry/rass math, larger JSON body limit for check images, and safer order pricing/status guards. Include rebuilt dist for prebuilt deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 14:55:26 +03:30

39 lines
1.1 KiB
Bash

# این فایل فقط روی سرور/لوکال می‌ماند و داخل گیت commit نمی‌شود.
# ایمیج Docker سکرت ندارد؛ همه تنظیمات از اینجا خوانده می‌شود.
POSTGRES_USER=fabric
POSTGRES_PASSWORD=fabric123
POSTGRES_DB=fabric_trade
POSTGRES_PORT=5432
# برای ابزارهای روی خود سرور (خارج از Docker)
DATABASE_URL=postgresql://fabric:fabric123@localhost:5432/fabric_trade?schema=public
API_PORT=8585
PORT=3000
# پشت LiteSpeed با URI=/server این را بگذار:
GLOBAL_PREFIX=server/api
API_IMAGE=fabric-trade-api:latest
RUN_SEED=false
JWT_SECRET=change-me-to-a-long-random-string
JWT_EXPIRES_IN=7d
MOCK_OTP_CODE=1234
OTP_TTL_MINUTES=5
# پیامک OTP (مثل آبشده خانگی — rayegansms / createsms)
SMS_ENABLED=true
SMS_API_URL=http://185.231.112.101/api/createsms
SMS_SECRET_KEY=your-sms-secret-key
SMS_PLATFORM=rayegansms
SMS_HOST=پارچه
SMS_APP_NAME=پارچه
# سقف حجم بدنه JSON (تصاویر چک و رسید base64 هستند)
BODY_LIMIT=25mb
TZ=Asia/Tehran
NODE_ENV=production
NPM_REGISTRY=https://registry.npmmirror.com
COMPOSE_BAKE=false