Skip to content

Commit ec93674

Browse files
committed
proxy: adjust sample-conf.yaml with rate limit params
1 parent b247970 commit ec93674

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

sample-conf.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)