Appearance
3328 - API Gateway
API gateway routing and middleware configuration. This is an example of a MAML document.
maml
{
gateway: {
host: "api.young-decryption.info"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 8877
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://muted-pants.name"
"https://app.cluttered-backbone.org"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}
cache: {
enabled: true
ttl: 2183
store: "redis"
}
}