Example 7123

API Gateway

API gateway routing and middleware configuration.

{
gateway: {
host: "api.long-term-lace.info"
port: 443
protocol: "https"
}

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

# CORS policy
cors: {
enabled: true
origins: [
"https://flawed-synergy.name"
"https://app.dependable-eyeliner.com"
]
methods: [
"GET"
"POST"
"PUT"
"DELETE"
]
max_age: 3600
}

cache: {
enabled: true
ttl: 866
store: "memory"
}
}

See also