Example 12236
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.tough-chops.com"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 299
by: "ip"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://obedient-vanadyl.com"
"https://app.apt-hammock.com"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}
cache: {
enabled: false
ttl: 1851
store: "redis"
}
}