Example 15636
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.complicated-zen.com"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 9753
by: "ip"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://medium-shore.info"
"https://app.miserly-vibraphone.name"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}
cache: {
enabled: false
ttl: 823
store: "memory"
}
}