# Environment Configuration
# Server Environment Variables
The main server requires the following environment variables. You can customize these in the .env file:
# Core Application Settings
# Application port (default: 3000)
APP_PORT=3000
# Environment mode
NODE_ENV=production
# Enable database query logging (set to false in production)
DEBUG_DB=false
# Security secrets (CHANGE THESE IN PRODUCTION)
COOKIE_SECRET=your-secure-cookie-secret
JWT_SECRET=your-very-secure-jwt-secret
# File management
DELETE_FILES=false # Whether to permanently delete files when users delete them
CACHE=true # Enable caching for better performance
# Database Configuration
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=stacks_hono
# Email Service Environment Variables
The email service handles background email processing:
# SMTP server settings
SMTP_HOST=smtp.gmail.com # Your SMTP server
SMTP_PORT=587 # SMTP port (587 for TLS, 465 for SSL)
SMTP_SECURE=false # true for SSL (port 465), false for TLS (port 587)
SMTP_USER=your-email@gmail.com # SMTP username
SMTP_PASSWORD=your-app-password # SMTP password or app password
# Email sender information
SMTP_FROM_NAME=Stacks Notifications
SMTP_FROM_EMAIL=your-email@gmail.com
# Processing settings
EMAIL_PROCESS_INTERVAL=60000 # Check for emails every 60 seconds
PUBLIC_URL=http://localhost:3000 # Your public URL for email links