2025-10-20 08:54:21 +01:00
|
|
|
# Environment Configuration Example
|
|
|
|
|
# Copy this file to .env and customize as needed
|
|
|
|
|
|
|
|
|
|
# Server Configuration
|
2025-10-29 14:04:24 +00:00
|
|
|
PORT=1999
|
2025-10-20 08:54:21 +01:00
|
|
|
HOST=localhost
|
|
|
|
|
GO_ENV=development
|
|
|
|
|
|
|
|
|
|
# Template Configuration
|
|
|
|
|
TEMPLATE_DIR=templates
|
|
|
|
|
PARTIALS_DIR=templates/partials
|
|
|
|
|
TEMPLATE_HOT_RELOAD=true
|
|
|
|
|
|
|
|
|
|
# Data Configuration
|
|
|
|
|
DATA_DIR=data
|
|
|
|
|
|
|
|
|
|
# Server Timeouts (seconds)
|
|
|
|
|
READ_TIMEOUT=15
|
|
|
|
|
WRITE_TIMEOUT=15
|
|
|
|
|
|
2025-11-09 14:00:10 +00:00
|
|
|
# Security Configuration
|
|
|
|
|
# Allowed origins for API access (comma-separated domains)
|
|
|
|
|
# Prevents external sites from accessing your API/PDF endpoint
|
2025-11-09 14:13:22 +00:00
|
|
|
#
|
|
|
|
|
# DEFAULT: If empty, defaults to juan.andres.morenorub.io (the CV site domain)
|
|
|
|
|
# Plus localhost and 127.0.0.1 are always allowed in development
|
|
|
|
|
#
|
|
|
|
|
# For custom domains in production: ALLOWED_ORIGINS=yourdomain.com,www.yourdomain.com
|
|
|
|
|
# Multiple domains: ALLOWED_ORIGINS=domain1.com,domain2.com,www.domain1.com
|
2025-11-09 14:00:10 +00:00
|
|
|
ALLOWED_ORIGINS=
|
|
|
|
|
|
2025-10-20 08:54:21 +01:00
|
|
|
# Production Settings
|
|
|
|
|
# Uncomment for production:
|
|
|
|
|
# GO_ENV=production
|
|
|
|
|
# TEMPLATE_HOT_RELOAD=false
|
|
|
|
|
# READ_TIMEOUT=30
|
|
|
|
|
# WRITE_TIMEOUT=30
|
2025-11-09 14:00:10 +00:00
|
|
|
# ALLOWED_ORIGINS=yourdomain.com,www.yourdomain.com
|