Example 5223
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.likely-role.com"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 4799
by: "api_key"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://humble-piglet.info"
"https://app.clear-grass.com"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}
cache: {
enabled: true
ttl: 3428
store: "redis"
}
}