saveinmed/backend/.env.example
Tiago Yamamoto fd237cd9c4 fix(backend): resolving hardcoded values and test failures
Updates .env.example with missing variables. Adds missing security headers in middleware. Fixes repository tests including timezone issues and sqlmock expectations.
2025-12-21 21:43:50 -03:00

33 lines
885 B
Text

# ============================================
# SaveInMed Backend - Environment Variables
# ============================================
# Application Settings
APP_NAME=saveinmed-performance-core
BACKEND_PORT=8214
# Database Configuration
DATABASE_URL=postgres://user:password@host:port/dbname?sslmode=disable
DB_MAX_OPEN_CONNS=15
DB_MAX_IDLE_CONNS=5
DB_CONN_MAX_IDLE=5m
# JWT Authentication
JWT_SECRET=your-secret-key-here
JWT_EXPIRES_IN=24h
PASSWORD_PEPPER=your-password-pepper
# MercadoPago Payment Gateway
MERCADOPAGO_BASE_URL=https://api.mercadopago.com
MARKETPLACE_COMMISSION=2.5
# CORS Configuration
# Comma-separated list of allowed origins, use * for all
# Examples:
# CORS_ORIGINS=*
# CORS_ORIGINS=https://example.com
# CORS_ORIGINS=https://app.saveinmed.com,https://admin.saveinmed.com,http://localhost:3000
CORS_ORIGINS=*
# Testing (Optional)
# SKIP_DB_TEST=1