Appearance
526 - API Gateway
API gateway routing and middleware configuration. This is an example of a MAML document.
maml
{
gateway: {
host: "api.teeming-pants.info"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "15m"
max_requests: 6279
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://emotional-operating.com"
"https://app.junior-insolence.biz"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}
cache: {
enabled: true
ttl: 556
store: "redis"
}
}