Example 8033
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.lazy-sushi.biz"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 5144
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://tedious-moment.biz"
"https://app.puzzled-hovercraft.name"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}
cache: {
enabled: false
ttl: 708
store: "redis"
}
}