Example 11735
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.prime-corral.biz"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 8732
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://low-beret.org"
"https://app.surprised-pupil.name"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}
cache: {
enabled: true
ttl: 621
store: "memory"
}
}