Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.draskencloud.com/llms.txt

Use this file to discover all available pages before exploring further.

Database

VariableDefaultDescription
GATEWAY_DB_DRIVERsqlitesqlite | postgres | mysql | cockroach
GATEWAY_DATABASE_URLsqlite://gateway.db?mode=rwcDatabase connection URL
GATEWAY_AUTO_MIGRATEtrueApply migrations on startup
GATEWAY_DB_MAX_CONNECTIONS10Max pool connections (non-SQLite)
GATEWAY_DB_MIN_CONNECTIONS2Min pool connections (non-SQLite)
GATEWAY_DB_CONNECT_TIMEOUT_SECS5Connection timeout

Server

VariableDefaultDescription
GATEWAY_SERVER__PROXY_PORT8080Public proxy port
GATEWAY_SERVER__MGMT_PORT9090Management API port
GATEWAY_SERVER__ADMIN_TOKENBearer token for management API
GATEWAY_SERVER__LOG_LEVELinfotrace | debug | info | warn | error
GATEWAY_SERVER__LOG_FORMATtexttext | json
GATEWAY_SERVER__SWAGGER_ENABLEDfalseEnable Swagger UI on mgmt port
GATEWAY_SERVER__SHUTDOWN_TIMEOUT_SECS30Graceful shutdown timeout

Rate Limiting

VariableDefaultDescription
GATEWAY_RATE_LIMIT_REQUESTS1000Requests per window
GATEWAY_RATE_LIMIT_WINDOW_SECS60Window duration in seconds
GATEWAY_PER_IP_RATE_LIMIT_ENABLEDfalseEnable per-IP rate limiting
GATEWAY_PER_IP_RATE_LIMIT_REQUESTS1000Per-IP requests per window

Cache

VariableDefaultDescription
GATEWAY_CACHE__ENABLEDfalseEnable response caching
GATEWAY_CACHE__BACKENDmemorymemory | redis | memcached
GATEWAY_CACHE__DEFAULT_TTL_SECS60Default cache TTL
GATEWAY_CACHE__REDIS__URLredis://localhost:6379Redis URL

Circuit Breaker

VariableDefaultDescription
GATEWAY_CIRCUIT_BREAKER__THRESHOLD5Failures before opening circuit
GATEWAY_CIRCUIT_BREAKER__TIMEOUT_SECS30Time before retrying

License

VariableDefaultDescription
GATEWAY_LICENSE_KEYLicense key for non-community tiers
GATEWAY_LICENSE__VALIDATORoffline_jwtoffline_jwt | online_api | none