Serve Lightning Addresses on the request's domain #2
Loading…
Reference in a new issue
No description provided.
Delete branch "any-domain"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The server now runs on the tailnet only, and each app on the VPS forwards to it from its own domain. Addresses drop the
domainsetting and take the public domain from the request instead. The server readsX-Forwarded-Hostif it's set, otherwiseHost. That domain goes into the callback, the metadata identifier and ntfy, so one config works for every domain.domainstays, because it's only used for the LNURL printed at startup.domain:under addresses still load, because the key is ignored.Apps that proxy with their own HTTP client must send
X-Forwarded-Host: <their domain>. OtherwiseHostis the upstream address and ends up in the callback. The server trusts both headers, so it must only be reachable over the tailnet.Tested with
go vet ./...andgo test ./.... There are new tests for a callback built fromHostand one built fromX-Forwarded-Host.🤖 Generated with Claude Code