Files
pg-adx/.env.example
2026-03-18 16:06:29 +07:00

74 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================
# ENVIRONMENT
# ============================
NODE_ENV=production
DEBUG=false
# ============================
# SERVER
# ============================
PORT=3000
API_PORT=3000
API_HOST=0.0.0.0
FRONTEND_PORT=80
# ============================
# DATABASE (PostgreSQL)
# ============================
# На VPS используй: openssl rand -base64 32
DB_HOST=postgres
DB_PORT=5432
DB_NAME=pg_admin
DB_USER=postgres
DB_PASSWORD=CHANGE_ME_TO_STRONG_PASSWORD_GENERATED_WITH_OPENSSL
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