Appearance
1231 - API Gateway
API gateway routing and middleware configuration. This is an example of a MAML document.
maml
{
gateway: {
host: "api.soulful-mentor.com"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 5700
by: "user"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://decisive-reporter.info"
"https://app.downright-restaurant.net"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}
cache: {
enabled: false
ttl: 2435
store: "redis"
}
}