Example 10227
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.bouncy-guacamole.com"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 8401
by: "ip"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://flustered-cash.name"
"https://app.good-natured-bid.name"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}
cache: {
enabled: false
ttl: 1366
store: "memory"
}
}