Appearance
532 - API Gateway
API gateway routing and middleware configuration. This is an example of a MAML document.
maml
{
gateway: {
host: "api.second-hexagon.net"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 8657
by: "ip"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://dutiful-developing.com"
"https://app.snoopy-forage.biz"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}
cache: {
enabled: false
ttl: 2599
store: "memory"
}
}