Caddy version (caddy version
):
2.5.1
System environment:
Win11
My sniplet/part of the Caddyfile:
@notLocal {
not remote_ip 192.168.1.0/24
}
basicauth @notLocal {
username password
}
What I already tried:
I have the header in top
header X-Forwarded-For {http.request.header.CF-Connecting-IP}
I tried
@notLocal {
not X-Forwarded-For IP_HERE
}
basicauth @notLocal {
username password
}
But wont start with this, I’m not sure if its even supported this way
The X-Forwarded-For I can only find via request>headers>X-Forwarded-Form when logging but not sure if that has to do with anything