Example 9134

API Gateway

API gateway routing and middleware configuration.

{
gateway: {
host: "api.pink-vanadyl.name"
port: 8443
protocol: "https"
}

# Rate limiting
rate_limit: {
enabled: true
window: "1m"
max_requests: 7509
by: "api_key"
}

# CORS policy
cors: {
enabled: true
origins: [
"https://elementary-coin.name"
"https://app.super-in-joke.net"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}

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

See also