How to configure IP access control for Caddy

We are working on replacing nginx with caddy, but I don’t know how to configure the following configuration in caddy.

nginx config:

location / {
allow 192.168.1.1;
deny all;
}

Please fill out the help topic template as per the forum rules. Show your Caddyfile. Show your logs. Explain what you’re trying to do in more detail.

1 Like

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