Example 15435
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.velvety-onset.com"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 2619
by: "ip"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://damaged-lounge.name"
"https://app.delirious-reconsideration.net"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}
cache: {
enabled: true
ttl: 2964
store: "redis"
}
}