Appearance
2922 - API Gateway
API gateway routing and middleware configuration. This is an example of a MAML document.
maml
{
gateway: {
host: "api.untried-shipper.org"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 9100
by: "ip"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://personal-swanling.com"
"https://app.parallel-postbox.com"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}
cache: {
enabled: false
ttl: 2636
store: "redis"
}
}