Example 3637

API Gateway

API gateway routing and middleware configuration.

{
gateway: {
host: "api.well-groomed-reach.com"
port: 443
protocol: "https"
}

# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 7218
by: "ip"
}

# CORS policy
cors: {
enabled: true
origins: [
"https://grave-remark.name"
"https://app.great-numeric.com"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 86400
}

cache: {
enabled: false
ttl: 2221
store: "memory"
}
}

See also