Example 9727
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.humiliating-accompanist.net"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 2402
by: "user"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://hurtful-circumference.org"
"https://app.aggressive-suv.org"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}
cache: {
enabled: false
ttl: 2778
store: "redis"
}
}