add btcpayserver
This commit is contained in:
parent
8e5f6991f9
commit
b553f45f47
5 changed files with 120 additions and 29 deletions
18
services/btcpayserver.nix
Normal file
18
services/btcpayserver.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue