Appearance
233 - API Gateway
API gateway routing and middleware configuration. This is an example of a MAML document.
maml
{
gateway: {
host: "api.flawed-cleaner.net"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 1286
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://cloudy-sandbar.com"
"https://app.limp-shadowbox.com"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}
cache: {
enabled: true
ttl: 334
store: "redis"
}
}