Example 3636

API Gateway

API gateway routing and middleware configuration.

{
gateway: {
host: "api.hairy-cross-contamination.net"
port: 8443
protocol: "https"
}

# Rate limiting
rate_limit: {
enabled: true
window: "15m"
max_requests: 4098
by: "ip"
}

# CORS policy
cors: {
enabled: true
origins: [
"https://whole-mythology.name"
"https://app.sick-fork.com"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}

cache: {
enabled: true
ttl: 445
store: "redis"
}
}

See also