Example 18139
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.milky-apricot.com"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 4575
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://soggy-tomatillo.biz"
"https://app.indolent-overcoat.com"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}
cache: {
enabled: true
ttl: 977
store: "memory"
}
}