Join Nostr
2024-09-04 19:29:23 GMT

satoshidude on Nostr: path rewrite with caddy is cool, especially if lnbits nostr relay websocket should ...

path rewrite with caddy is cool, especially if lnbits nostr relay websocket should listen at the root of a subdomain.

relay.nsnip.io {
rewrite * /nostrrelay/nsnip

reverse_proxy 0.0.0.0:5000 {
header_up Host {host}
header_up X-Real-IP {remote}
header_up X-Forwarded-For {remote}
header_up X-Forwarded-Proto {scheme}
}
}