File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,19 @@ services:
188188 authwhitelistpaths :
189189 - ' ^/freebieservice.*$'
190190
191+ # Optional per-endpoint rate limits using a token bucket.
192+ # Each entry matches a path regex and defines how many requests are
193+ # allowed per time window, with an optional burst.
194+ ratelimits :
195+ - pathregex : ' ^/looprpc.SwapServer/LoopOutTerms.*$'
196+ requests : 5
197+ per : 1s
198+ burst : 5
199+ - pathregex : ' ^/looprpc.SwapServer/LoopOutQuote.*$'
200+ requests : 2
201+ per : 1s
202+ burst : 2
203+
191204 # A list of regular expressions for path that will skip invoice creation,
192205 # but still try to do the l402 authentication. This is useful for streaming
193206 # services, as they are not supported to be the initial request to receive
You can’t perform that action at this time.
0 commit comments