Caddy
2024-10-24
IP whitelist
irc.hyperreal.coffee {
@me {
client_ip 1.2.3.4
}
handle @me {
reverse_proxy localhost:9000
}
respond "You are attempting to access protected resources!" 403
}
Reverse proxy for qBittorrent over Tailscale
I shall explain precisely what these directives do, as soon as I find out precisely what it is. I shall look into it, soon. It would be good to know something about how web servers, headers, and the HTTP protocol work, and what all this “origin”, “referer”, and “cross-origin” stuff means.
hostname.tailnet.ts.net:8888 {
reverse_proxy localhost:8080 {
header_up Host localhost:8080
header_up X-Forwarded-Host {host}:{hostport}
header_up -Origin
header_up -Referer
}
}