You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use the plugin matcher for reverse_proxy and tried the following.
Anything I missed, should this even work for reverse_proxy as well?
So the abort function seems to work.
If the ip address is in the list, I get an error, so far so good.
However if I remove the ip address I just get a blank page, so I assume I need a directive to continue if the ip is not in the list?
Hi, sorry for the delay in replying. I haven't used this inside a reverse_proxy block myself so I can't say I've tested this. However, looking at the docs for handle_response you might want to try and pull the directives outside of the block like this:
I don't know if this is going to work, but it's worth a shot. The plugin should support this, although I found the docs a little confusing so I'm not sure exactly how it'll behave. If you can narrow it down and identify a bug, let me know.
Hi.
I would like to use the plugin matcher for reverse_proxy and tried the following.
Anything I missed, should this even work for reverse_proxy as well?
So the abort function seems to work.
If the ip address is in the list, I get an error, so far so good.
However if I remove the ip address I just get a blank page, so I assume I need a directive to continue if the ip is not in the list?
I added the ip to the file banned-ips:
e.g.
Caddy file contents:
Thanks
The text was updated successfully, but these errors were encountered: