github.com/avenga/couper@v1.12.2/server/testdata/integration/ratelimit/01_couper.hcl (about) 1 server "couper" { 2 endpoint "/fixed" { 3 proxy { 4 backend = "RLFixed" 5 } 6 } 7 endpoint "/sliding" { 8 proxy { 9 backend = "RLSliding" 10 } 11 } 12 endpoint "/block" { 13 proxy { 14 backend = "RLBlock" 15 } 16 } 17 } 18 19 definitions { 20 backend "RLFixed" { 21 path = "/small" 22 origin = env.COUPER_TEST_BACKEND_ADDR 23 24 beta_rate_limit { 25 period = "3s" 26 per_period = 2 27 period_window = "fixed" 28 } 29 } 30 backend "RLSliding" { 31 path = "/small" 32 origin = env.COUPER_TEST_BACKEND_ADDR 33 34 beta_rate_limit { 35 period = "3s" 36 per_period = 2 37 period_window = "sliding" 38 } 39 } 40 backend "RLBlock" { 41 path = "/small" 42 origin = env.COUPER_TEST_BACKEND_ADDR 43 44 beta_rate_limit { 45 period = "1s" 46 per_period = 2 47 period_window = "fixed" 48 mode = "block" 49 } 50 } 51 }