Example 15428

API Gateway

API gateway routing and middleware configuration.

{
gateway: {
host: "api.each-term.net"
port: 8443
protocol: "https"
}

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

# CORS policy
cors: {
enabled: true
origins: [
"https://comfortable-cross-contamination.biz"
"https://app.minty-substitution.info"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}

cache: {
enabled: true
ttl: 3273
store: "memory"
}
}

See also