Example 13840
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.unlawful-ethyl.com"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 3477
by: "ip"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://willing-larva.org"
"https://app.well-made-handful.org"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}
cache: {
enabled: false
ttl: 1951
store: "memory"
}
}