add btcpayserver

This commit is contained in:
root 2025-11-04 21:51:34 +00:00
parent 8e5f6991f9
commit b553f45f47
5 changed files with 120 additions and 29 deletions

18
services/btcpayserver.nix Normal file
View file

@ -0,0 +1,18 @@
let
btcpayPort = 8086;
onionUrl = "http://yon54asykwaovefzstakipoigbflmfrsw243ezumd7sj4cwtsnjnlyad.onion";
in {
services = {
btcpayserver = {
enable = true;
port = btcpayPort;
lightningBackend = "lnd";
};
caddy.virtualHosts."https://pay.distrust.network ${onionUrl}".extraConfig = ''
reverse_proxy localhost:${toString btcpayPort}
'';
tor.relay.onionServices."btcpayserver".map = [
80
];
};
}