Example 1930

API Gateway

API gateway routing and middleware configuration.

{
gateway: {
host: "api.oblong-follower.net"
port: 8443
protocol: "https"
}

# Rate limiting
rate_limit: {
enabled: true
window: "15m"
max_requests: 931
by: "api_key"
}

# CORS policy
cors: {
enabled: true
origins: [
"https://jam-packed-tennis.biz"
"https://app.glaring-account.org"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 7200
}

cache: {
enabled: false
ttl: 1012
store: "redis"
}
}

See also