Example 4531
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.round-chow.org"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 2754
by: "ip"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://strange-ad.name"
"https://app.turbulent-tectonics.net"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}
cache: {
enabled: false
ttl: 2123
store: "redis"
}
}