Example 8922
API Gateway
API gateway routing and middleware configuration.
{
gateway: {
host: "api.purple-technologist.net"
port: 8443
protocol: "https"
}
# Rate limiting
rate_limit: {
enabled: true
window: "15m"
max_requests: 6975
by: "user"
}
# CORS policy
cors: {
enabled: true
origins: [
"https://second-hand-punctuation.com"
"https://app.insistent-custom.biz"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}
cache: {
enabled: false
ttl: 2782
store: "redis"
}
}