Files
goplt/config/default.yaml
0x1d 0e3bfb4e44 fix: ensure database and HTTP server providers execute on startup
- Add fx.Invoke in main.go to force database and HTTP server creation
- This ensures all providers execute and their lifecycle hooks are registered
- Clean up debug logging statements
- Database migrations and HTTP server now start correctly on application startup

Fixes issue where database migrations and HTTP server were not starting
because FX providers were not being executed (lazy evaluation).
2025-11-05 20:32:20 +01:00

27 lines
476 B
YAML

environment: development
server:
port: 3000
host: "0.0.0.0"
read_timeout: 30s
write_timeout: 30s
database:
driver: "postgres"
dsn: "postgres://goplt:goplt_password@localhost:5432/goplt?sslmode=disable"
max_connections: 25
max_idle_connections: 5
conn_max_lifetime: 5m
conn_max_idle_time: 10m
logging:
level: "info"
format: "json"
output: "stdout"
tracing:
enabled: true
service_name: "platform"
service_version: "1.0.0"
otlp_endpoint: ""