Example 12832
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.gruesome-ignorance.info"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 7426
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://criminal-instance.net"
"https://app.good-knitting.biz"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}
cache: {
enabled: true
ttl: 1266
store: "redis"
}
}