Caddy security with multiple docker networks

Hi,

Is there a way to force caddy to only listen on one interface/ip address.
Indeed, in my current setup, Caddy is inside multiple docker networks since I use one Caddy to reverse proxy multiple servers/stacks.
Due to that I think that one container of one stack could reach the caddy container and reach the websites of other containers which are reverse proxied via Caddy. So I would like to only allow the incoming traffic on one interface/address and not listening on all of them. Thanks for your help.

You need to use the bind directive

There’s also the default_bind global option

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.