

4·
1 day agoSeems like the router doesn’t like how the headers are passed on. You could try:
login.router.lan {
reverse_proxy 192.168.1.1:80 {
header_up Host {upstream_hostport}
}
}
https://caddyserver.com/docs/caddyfile/directives/reverse_proxy#headers

The problem is that
/-owill also match something like--my-irrelevant-option.Word boundaries match the end (or the beginning) of the word.
How exactly to do it depends on the regex library, my
lessis built withPCRE2therefore I can do/-o\b.