# Goyco Environment Configuration # Copy this file to .env and update with your actual values # DO NOT commit .env to version control # Database Configuration DB_HOST=localhost DB_PORT=5432 DB_USER=postgres DB_PASSWORD=your_password_here DB_NAME=goyco DB_SSLMODE=disable # Server Configuration SERVER_HOST=0.0.0.0 SERVER_PORT=8080 SERVER_READ_TIMEOUT=30 SERVER_WRITE_TIMEOUT=30 SERVER_IDLE_TIMEOUT=120 SERVER_MAX_HEADER_BYTES=1048576 SERVER_ENABLE_TLS=false SERVER_TLS_CERT_FILE= SERVER_TLS_KEY_FILE= # JWT Configuration # IMPORTANT: Generate a secure random secret (minimum 32 characters) # Example: openssl rand -base64 32 JWT_SECRET=your-secure-secret-key-minimum-32-characters-long JWT_EXPIRATION=1 JWT_REFRESH_EXPIRATION=168 JWT_ISSUER=goyco JWT_AUDIENCE=goyco-users JWT_KEY_ROTATION_ENABLED=false JWT_CURRENT_KEY= JWT_PREVIOUS_KEY= JWT_KEY_ID=default # SMTP Configuration SMTP_HOST=smtp.example.com SMTP_PORT=587 SMTP_USERNAME=your-email@example.com SMTP_PASSWORD=your-password SMTP_FROM=noreply@example.com SMTP_TIMEOUT=30 # Application Settings APP_BASE_URL=https://goyco.example.com ADMIN_EMAIL=admin@example.com TITLE=Goyco DEBUG=false BCRYPT_COST=10 # Rate limiting configuration (nb of request per minutes) RATE_LIMIT_AUTH=5 RATE_LIMIT_GENERAL=100 RATE_LIMIT_HEALTH=60 RATE_LIMIT_METRICS=10 RATE_LIMIT_TRUST_PROXY=false # Environment # Set to: development, staging, or production GOYCO_ENV=development # CORS Configuration (optional, comma-separated) # Example: CORS_ALLOWED_ORIGINS=https://example.com,https://www.example.com CORS_ALLOWED_ORIGINS= # Logging LOG_DIR=/var/log/ PID_DIR=/run