Example 3129

API Gateway

API gateway routing and middleware configuration.

{
gateway: {
host: "api.late-saloon.name"
port: 443
protocol: "https"
}

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

# CORS policy
cors: {
enabled: true
origins: [
"https://charming-lift.info"
"https://app.indelible-minority.info"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}

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

See also