Appearance
2437 - API Gateway
API gateway routing and middleware configuration. This is an example of a MAML document.
maml
{
gateway: {
host: "api.grave-hunger.info"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 4324
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://heartfelt-heroine.net"
"https://app.nutritious-anticodon.info"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}
cache: {
enabled: true
ttl: 2237
store: "redis"
}
}