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;
}