Example 11237
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.outlying-yak.biz"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 3341
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://alive-circumference.org"
"https://app.grave-bowling.com"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}
cache: {
enabled: true
ttl: 1798
store: "redis"
}
}