Caddy to skip basic auth if the request is coming from an internal network

Thank you! I didn’t really know what to do from this comment but I found your other post here and took this example:

stream.example.com {
	@not-local not remote_ip 192.168.1.0/24
	basicauth @not-local {
		user pw_hash
	}
	reverse_proxy 192.168.178.111:8080
}
1 Like