# {{COMPONENT_NAME}} Service Configuration

# Server
SERVER_PORT={{PORT}}
SERVER_HOST=0.0.0.0

# App
APP_NAME={{COMPONENT_NAME}}
APP_ENVIRONMENT=development
APP_DEBUG=true

# Logging
LOG_LEVEL=debug
LOG_FORMAT=text

# Auth (set AUTH_ENABLED=true to require JWT for protected routes)
AUTH_ENABLED=false
JWT_SECRET=dev-secret-change-in-production  # Required — server refuses to start with empty secret
REGISTRATION_ENABLED=true

# Email delivery (notify service)
# When NOTIFY_URL is empty, auth codes are logged to stdout (dev mode).
# NOTIFY_URL=https://notify.threesix.ai
# NOTIFY_API_KEY=notify_send_xxx
# NOTIFY_HOST=myapp.threesix.ai
# NOTIFY_FROM=noreply@myapp.threesix.ai

# Database (if needed)
# Local dev: PostgreSQL via docker-compose. Production: CockroachDB (platform-provisioned).
# The postgres:// scheme works for both — CockroachDB is wire-compatible.
DATABASE_URL=postgres://dev:dev@localhost:5432/{{PROJECT_NAME}}?sslmode=disable
