Example 14622

API Gateway

API gateway routing and middleware configuration.

{
gateway: {
host: "api.likely-starboard.com"
port: 8443
protocol: "https"
}

# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 3332
by: "user"
}

# CORS policy
cors: {
enabled: true
origins: [
"https://untried-airmail.com"
"https://app.minty-battle.info"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}

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

See also