Appearance
1227 - API Gateway
API gateway routing and middleware configuration. This is an example of a MAML document.
maml
{
gateway: {
host: "api.crafty-rust.org"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "5m"
max_requests: 9561
by: "user"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://pastel-switchboard.name"
"https://app.back-solvency.name"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}
cache: {
enabled: false
ttl: 404
store: "memory"
}
}