58 lines
1.3 KiB
Plaintext
58 lines
1.3 KiB
Plaintext
# 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
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
# CLI configuration
|
|
CLI_JSON_OUTPUT=false
|
|
|
|
# Rate limiting configuration (nb of request per minutes)
|
|
RATE_LIMIT_AUTH=10
|
|
RATE_LIMIT_GENERAL=200
|
|
RATE_LIMIT_HEALTH=120
|
|
RATE_LIMIT_METRICS=20
|
|
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
|