Example 16124
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.incomplete-executor.com"
port: 443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "15m"
max_requests: 936
by: "user"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://intrepid-eggplant.info"
"https://app.brilliant-expense.name"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}
cache: {
enabled: true
ttl: 2141
store: "redis"
}
}