Fix for production

This commit is contained in:
mahmood
2026-09-10 22:37:29 +03:30
parent efb0051ab9
commit ec899defb9
95 changed files with 219589 additions and 110 deletions
+10 -1
View File
@@ -6,6 +6,7 @@ PORT=3000
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=
@@ -30,6 +31,14 @@ STORAGE_DRIVER=local
STORAGE_LOCAL_ROOT=./uploads
STORAGE_PUBLIC_URL=http://localhost:3000/uploads
# CORS
# 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