INIT
This commit is contained in:
79
.env.example
Normal file
79
.env.example
Normal file
@@ -0,0 +1,79 @@
|
||||
# ==============================================
|
||||
# ENVIRONMENT VARIABLES TEMPLATE
|
||||
# ==============================================
|
||||
# Copy this file to .env and fill in your actual values
|
||||
# NEVER commit real credentials to version control
|
||||
|
||||
# ==============================================
|
||||
# DATABASE CONFIGURATION
|
||||
# ==============================================
|
||||
DATABASE_URL=postgresql://username:password@localhost:5432/database_name
|
||||
POSTGRES_USER=your_db_user
|
||||
POSTGRES_PASSWORD=your_secure_password
|
||||
POSTGRES_DB=your_database_name
|
||||
|
||||
# ==============================================
|
||||
# REDIS CONFIGURATION
|
||||
# ==============================================
|
||||
REDIS_URL=redis://localhost:6379
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=your_redis_password_if_needed
|
||||
|
||||
# ==============================================
|
||||
# BACKEND CONFIGURATION
|
||||
# ==============================================
|
||||
BACKEND_PORT=4000
|
||||
NODE_ENV=development
|
||||
JWT_SECRET=your-super-secret-jwt-key-minimum-32-characters
|
||||
JWT_EXPIRES_IN=24h
|
||||
API_PREFIX=/api/v1
|
||||
|
||||
# ==============================================
|
||||
# FRONTEND CONFIGURATION
|
||||
# ==============================================
|
||||
FRONTEND_PORT=3000
|
||||
NEXT_PUBLIC_API_URL=http://localhost:4000
|
||||
NEXT_PUBLIC_APP_NAME=Next Nest Docker Template
|
||||
|
||||
# ==============================================
|
||||
# NGINX CONFIGURATION
|
||||
# ==============================================
|
||||
NGINX_HTTP_PORT=80
|
||||
NGINX_HTTPS_PORT=443
|
||||
|
||||
# ==============================================
|
||||
# CORS CONFIGURATION
|
||||
# ==============================================
|
||||
CORS_ORIGIN=http://localhost:3000,http://localhost:80
|
||||
CORS_CREDENTIALS=true
|
||||
|
||||
# ==============================================
|
||||
# SECURITY SETTINGS
|
||||
# ==============================================
|
||||
RATE_LIMIT_WINDOW_MS=900000
|
||||
RATE_LIMIT_MAX_REQUESTS=100
|
||||
BCRYPT_SALT_ROUNDS=12
|
||||
|
||||
# ==============================================
|
||||
# EMAIL CONFIGURATION (Optional)
|
||||
# ==============================================
|
||||
# SMTP_HOST=smtp.gmail.com
|
||||
# SMTP_PORT=587
|
||||
# SMTP_USER=your-email@gmail.com
|
||||
# SMTP_PASS=your-app-password
|
||||
|
||||
# ==============================================
|
||||
# EXTERNAL SERVICES (Optional)
|
||||
# ==============================================
|
||||
# AWS_ACCESS_KEY_ID=your-aws-access-key
|
||||
# AWS_SECRET_ACCESS_KEY=your-aws-secret-key
|
||||
# AWS_REGION=us-east-1
|
||||
# AWS_S3_BUCKET=your-bucket-name
|
||||
|
||||
# ==============================================
|
||||
# MONITORING & LOGGING (Optional)
|
||||
# ==============================================
|
||||
# LOG_LEVEL=info
|
||||
# SENTRY_DSN=your-sentry-dsn
|
||||
# MONITORING_ENABLED=true
|
||||
Reference in New Issue
Block a user