Example 5325
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.meaty-vicinity.name"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 5746
by: "ip"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://great-incandescence.name"
"https://app.shy-doubter.info"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}
cache: {
enabled: false
ttl: 140
store: "memory"
}
}