# DB DB_NAME=myfin DB_HOST=localhost DB_USER=myfin DB_PW=myfinpassword DB_PORT=3406 DATABASE_URL="mysql://myfin:myfinpassword@localhost:3406/myfin" # EMAIL SMTP_HOST="XYZ" SMTP_PORT=465 SMTP_SECURE=true SMTP_USER="XYZ" SMTP_PASSWORD="XYZ" SMTP_FROM="xyz@xyz.com" # CUSTOM OPTIONS LOGGING=false BYPASS_SESSION_CHECK=false ENABLE_USER_SIGNUP=true NODE_ENV=production # REVERSE PROXY CONFIGURATION (Express 'trust proxy') # This setting is required when running behind a reverse proxy (Traefik, Nginx, Cloudflare, etc.) # to correctly identify client IP addresses for rate limiting. # # Possible values: # - '1' (Number): Trust the first hop. Recommended for a single proxy like Traefik or Nginx. # - '2' (Number): Trust the 2nd hop. Use if you have a CDN (like Cloudflare) + a local proxy. # - 'true' (Boolean): Trust all 'X-Forwarded-*' headers. Easy for local/trusted networks but # allows IP spoofing if the proxy isn't sanitizing headers. # - 'false' (Boolean): Do not trust any proxy. (Express default) # - 'loopback' (String): Trust loopback addresses (127.0.0.1/8, ::1/128). # - '10.0.0.1, 192.168.1.1' (IP list): Trust a specific list of proxy IP addresses. # - '10.0.0.0/8' (Subnet): Trust an entire CIDR range. TRUST_PROXY=false