Example 14727

API Gateway

API gateway routing and middleware configuration.

{
gateway: {
host: "api.wrong-casket.org"
port: 8443
protocol: "https"
}

# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 988
by: "ip"
}

# CORS policy
cors: {
enabled: true
origins: [
"https://unselfish-scarification.info"
"https://app.worldly-spring.biz"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}

cache: {
enabled: true
ttl: 2027
store: "memory"
}
}

See also