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}
}
}
Published at
2024-09-04 19:29:23 GMTEvent JSON
{
"id": "29957d6428ae6adfa08bb6061338bf7c7410dc03d8b8b311e1be1e51c193d09a",
"pubkey": "661419f8f48b1b496e2249aee97a6ad9d5bea907149dc7bf3eb7479f2bce555e",
"created_at": 1725478163,
"kind": 1,
"tags": [],
"content": "path rewrite with caddy is cool, especially if lnbits nostr relay websocket should listen at the root of a subdomain.\n\nrelay.nsnip.io {\n\trewrite * /nostrrelay/nsnip\n\t\n\treverse_proxy 0.0.0.0:5000 {\n\t\theader_up Host {host}\n\t\theader_up X-Real-IP {remote}\n\t\theader_up X-Forwarded-For {remote}\n\t\theader_up X-Forwarded-Proto {scheme}\n\t}\n}",
"sig": "b1b37f8d8a479d12877c82dc9cb4ced4d68cd7a89c8a51ade58eb48c9e47680f32c9eb6467bd7dd1cc60a3b908202866e5b7f0f37b686efe89d35207559bf469"
}