Example 16234
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.necessary-underneath.info"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 1410
by: "user"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://untrue-pantyhose.info"
"https://app.experienced-electronics.net"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}
cache: {
enabled: false
ttl: 1677
store: "memory"
}
}