Example 15729

API Gateway

API gateway routing and middleware configuration.

{
gateway: {
host: "api.wobbly-solution.name"
port: 8443
protocol: "https"
}

# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 3072
by: "api_key"
}

# CORS policy
cors: {
enabled: true
origins: [
"https://immediate-retention.net"
"https://app.boring-instruction.net"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}

cache: {
enabled: false
ttl: 3192
store: "redis"
}
}

See also