Example 8629
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.peaceful-affect.org"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 6018
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://unwieldy-certification.info"
"https://app.sentimental-elevation.com"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}
cache: {
enabled: true
ttl: 1351
store: "redis"
}
}