Example 5422
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.neglected-baseboard.biz"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 7128
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://happy-go-lucky-suv.info"
"https://app.foolhardy-cantaloupe.name"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}
cache: {
enabled: false
ttl: 3282
store: "redis"
}
}