Example 16224

API Gateway

API gateway routing and middleware configuration.

{
gateway: {
host: "api.uneven-scout.name"
port: 443
protocol: "https"
}

# Rate limiting
rate_limit: {
enabled: true
window: "15m"
max_requests: 6766
by: "user"
}

# CORS policy
cors: {
enabled: true
origins: [
"https://delicious-editor.org"
"https://app.limping-handover.name"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}

cache: {
enabled: true
ttl: 3227
store: "redis"
}
}

See also