Example 5328
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.known-typewriter.biz"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 7565
by: "user"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://questionable-hoof.info"
"https://app.unused-majority.org"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}
cache: {
enabled: true
ttl: 1519
store: "redis"
}
}