-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ratelimit handler support #61
Comments
You want to rate limit HTTP requests without decoding HTTP, or... what is your goal? What are you trying to do? |
Hi @mholt I'd like to be able to rate limit behind an AWS NLB that uses proxy protocol with Caddy as a target, which terminates TLS and then proxies to another application. In this scenario Caddy is responsible for all TLS traffic and uses a few CEL/http matchers.
|
Hi @gojihotsauce, You can use the caddy2-proxyprotocol listen wrapper to handle the incoming proxy protocol with caddy. Even if layer4 would have a rate limiter, it would most likely operate on connection level. Meaning once a connection is established multiple http requests can be sent over it. These requests would then bypass the rate limiter, which is probably not what you want. |
Thank you @ydylla! This helps point me in the right direction. I'll close this issue for now. Cheers. |
Hello everyone,
Are we able to leverage the ratelimit handler within a
layer4
listener using proxy protocol?Thanks!
The text was updated successfully, but these errors were encountered: