Example 17537
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.electric-cafe.name"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 3443
by: "user"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://upset-teriyaki.net"
"https://app.negligible-adrenalin.net"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}
cache: {
enabled: true
ttl: 1285
store: "redis"
}
}