Files
Lucky_Wheel/apps/api/.env.example
T
2026-09-10 22:37:29 +03:30

45 lines
1.4 KiB
Bash

# Application
NODE_ENV=development
PORT=3000
# Database (PostgreSQL inside Docker)
DATABASE_URL="postgresql://postgres:postgrespassword@localhost:5432/lucky_wheel?schema=public"
# Redis & Queue
# اگر از docker-compose لوکال استفاده می‌کنید و پورت 6380 مپ شده: REDIS_PORT=6380
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# JWT Secrets
JWT_USER_SECRET=lucky_wheel_user_jwt_super_secret_key_2026!
JWT_USER_EXPIRES_IN=7d
JWT_ADMIN_ACCESS_SECRET=lucky_wheel_admin_access_jwt_super_secret_key_2026!
JWT_ADMIN_ACCESS_EXPIRES_IN=1h
JWT_ADMIN_REFRESH_SECRET=lucky_wheel_admin_refresh_jwt_super_secret_key_2026!
JWT_ADMIN_REFRESH_EXPIRES_IN=7d
# SMS Provider - raygansms.com
RAYGAN_SMS_USERNAME=demo_user
RAYGAN_SMS_PASSWORD=demo_password
RAYGAN_SMS_LINE_NUMBER=3000xxxx
RAYGAN_SMS_API_BASE_URL=https://api.raygansms.com
SMS_DRIVER=mock
# Storage Driver (local disk)
STORAGE_DRIVER=local
STORAGE_LOCAL_ROOT=./uploads
STORAGE_PUBLIC_URL=http://localhost:3000/uploads
# CORS (لوکال)
CORS_ADMIN_ORIGIN=http://localhost:5173
CORS_CLIENT_ORIGIN=http://localhost:5174
# --- Production (Dokploy) نمونه ---
# CORS_ADMIN_ORIGIN=https://adm.wheel.montzar.ir
# CORS_CLIENT_ORIGIN=https://wheel.montzar.ir
# STORAGE_PUBLIC_URL=https://api.wheel.montzar.ir/uploads
# DATABASE_URL=postgresql://postgres:PASSWORD@postgres:5432/lucky_wheel?schema=public
# REDIS_HOST=redis
# REDIS_PORT=6379