Gateway Configuration
The Gateway is configured via YAML files with environment variable expansion support.Configuration Files
| File | Purpose |
|---|---|
config.yaml | Default development configuration |
config.production.yaml | Production configuration |
Loading Configuration
Complete Configuration Reference
Environment Variable Overrides
The following environment variables override configuration:| Variable | Config Path | Description |
|---|---|---|
PORT | server.port | HTTP server port |
DATABASE_URL | database.dsn | PostgreSQL connection string |
WALLET_CORE_ADDRESS | wallet_core.address | gRPC server address |
JWT_SECRET | auth.jwt_secret | JWT signing secret |
AGENT_TS_SECRET | service_auth.agent_ts.secret | Agent-TS service secret |
AGENT_TS_URL | - | Agent-TS service URL |
VULT_WEBHOOK_SECRET | webhook.vult_hmac_secret | VULT webhook HMAC secret |
Configuration by Section
- Server
- Database
- Wallet-Core
- Rate Limiting
Development Configuration
Production Configuration
TLS/mTLS Configuration
Server TLS
gRPC Client TLS (to Wallet-Core)
Validation
The configuration loader validates required fields:| Field | Required | Notes |
|---|---|---|
database.dsn | Yes | Valid PostgreSQL DSN |
auth.jwt_secret | Yes | Minimum 32 characters |
wallet_core.address | Yes | Valid host:port |
service_auth.*.secret | Yes | If service auth enabled |
Troubleshooting
Config file not found
Config file not found
- Verify file path is correct
- Check file permissions
- Use absolute path with
-configflag
Environment variables not expanded
Environment variables not expanded
- Verify variable is exported
- Use
${VAR:default}syntax for defaults - Check for typos in variable names
Database connection failed
Database connection failed
- Verify DSN format
- Check network connectivity
- Ensure database exists
- Verify credentials
gRPC connection failed
gRPC connection failed
- Verify wallet-core is running
- Check address and port
- If TLS enabled, verify certificates