Example 5938
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.oily-innovation.name"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "15m"
max_requests: 2586
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://expensive-devil.name"
"https://app.tidy-comparison.com"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}
cache: {
enabled: true
ttl: 2242
store: "memory"
}
}