Appearance
1133 - API Gateway
API gateway routing and middleware configuration. This is an example of a MAML document.
maml
{
gateway: {
host: "api.wrong-nerve.biz"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 7506
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://trustworthy-digestive.biz"
"https://app.graceful-morbidity.net"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}
cache: {
enabled: true
ttl: 2271
store: "memory"
}
}