Example 6423
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.unsteady-fraudster.org"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 8767
by: "user"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://slight-taro.name"
"https://app.indolent-word.name"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}
cache: {
enabled: true
ttl: 1017
store: "redis"
}
}