Example 3433

API Gateway

API gateway routing and middleware configuration.

{
gateway: {
host: "api.frightened-configuration.info"
port: 443
protocol: "https"
}

# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 1870
by: "user"
}

# CORS policy
cors: {
enabled: true
origins: [
"https://ill-fated-density.name"
"https://app.suburban-pigpen.info"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}

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

See also