This commit is contained in:
2026-03-18 15:44:11 +07:00
commit 6b69d4f64c
21 changed files with 1237 additions and 0 deletions

72
.env.example Normal file
View File

@@ -0,0 +1,72 @@
# ============================
# ENVIRONMENT
# ============================
NODE_ENV=production
DEBUG=false
# ============================
# SERVER
# ============================
PORT=3000
API_PORT=3000
API_HOST=0.0.0.0
FRONTEND_PORT=80
# ============================
# DATABASE (PostgreSQL)
# ============================
DB_HOST=postgres
DB_PORT=5432
DB_NAME=pg_admin
DB_USER=postgres
DB_PASSWORD=CHANGE_ME_SECURE_PASSWORD
DB_HOST_DEV=localhost
# Connection pool
MAX_CONNECTIONS=20
CONNECTION_TIMEOUT=5000
IDLE_TIMEOUT=30000
# ============================
# AUTHENTICATION & SECURITY
# ============================
JWT_SECRET=CHANGE_ME_SUPER_SECRET_JWT_KEY
JWT_EXPIRE=7d
# ============================
# REDIS CACHE
# ============================
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=CHANGE_ME_REDIS_PASSWORD
REDIS_DB=0
# ============================
# FRONTEND
# ============================
FRONTEND_API_URL=http://api.yourdomain.com/api
REACT_APP_ENV=production
# ============================
# NGINX
# ============================
NGINX_PORT=8080
# ============================
# CORS & RATE LIMITING
# ============================
CORS_ORIGIN=https://yourdomain.com
RATE_LIMIT_WINDOW=15
RATE_LIMIT_MAX_REQUESTS=100
# ============================
# LOGGING
# ============================
LOG_LEVEL=warn
LOG_FORMAT=json
# ============================
# MONITORING
# ============================
SENTRY_DSN=https://your-sentry-dsn@sentry.io/project-id