An admin area open only to the LAN needs three lines, and their order is the whole trick.
location /admin/ {
allow 192.168.1.0/24; allow 10.8.0.2;
deny all;
}
The rules are checked in order and the first one that matches decides, so deny all at the top would block everybody. Blocked clients get a 403. nginx judges the address it sees, which behind another proxy is the proxy unless the real client IP is restored. With satisfy any; and auth_basic in the same location, a visitor passes by either having an allowed address or a valid password.
Further reading: ngx_http_access_module
Going deeper: ๐ Guide: AdGuard Home + Tailscale (Secure Split-Horizon DNS)