name = "proxy" main = "src/index.ts" compatibility_date = "2024-05-13" compatibility_flags = [ "nodejs_compat" ] [env.staging] # The rate limiting API is in open beta. [[env.staging.unsafe.bindings]] name = "API_RATE_LIMITER" type = "ratelimit" # An identifier you define, that is unique to your Cloudflare account. # Must be an integer. namespace_id = "1" # Limit: the number of tokens allowed within a given period in a single # Cloudflare location # Period: the duration of the period, in seconds. Must be either 10 or 60 simple = { limit = 100, period = 60 } [env.prod] # The rate limiting API is in open beta. [[env.prod.unsafe.bindings]] name = "API_RATE_LIMITER" type = "ratelimit" # An identifier you define, that is unique to your Cloudflare account. # Must be an integer. namespace_id = "2" # Limit: the number of tokens allowed within a given period in a single # Cloudflare location # Period: the duration of the period, in seconds. Must be either 10 or 60 simple = { limit = 300, period = 60 }