From edc657d138e51970e0ea981fbbc2d3471d0cda41 Mon Sep 17 00:00:00 2001 From: nixbitcoin Date: Wed, 30 Dec 2020 10:56:51 +0000 Subject: [PATCH] btcpayserver: add rootpath option --- modules/btcpayserver.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/btcpayserver.nix b/modules/btcpayserver.nix index 9c5b8b0..427a08a 100644 --- a/modules/btcpayserver.nix +++ b/modules/btcpayserver.nix @@ -84,6 +84,12 @@ in { default = null; description = "The lightning node implementation to use."; }; + rootpath = mkOption { + type = types.nullOr types.str; + default = null; + example = "btcpayserver"; + description = "The prefix for root-relative btcpayserver URLs."; + }; enforceTor = nix-bitcoin-services.enforceTor; }; }; @@ -150,6 +156,7 @@ in { btcexplorerurl=http://${cfg.nbxplorer.bind}:${toString cfg.nbxplorer.port}/ btcexplorercookiefile=${cfg.nbxplorer.dataDir}/${config.services.bitcoind.makeNetworkName "Main" "RegTest"}/.cookie bind=${cfg.btcpayserver.bind} + ${optionalString (cfg.btcpayserver.rootpath != null) "rootpath=${cfg.btcpayserver.rootpath}"} port=${toString cfg.btcpayserver.port} '' + optionalString (cfg.btcpayserver.lightningBackend == "clightning") '' btclightning=type=clightning;server=unix:///${cfg.clightning.dataDir}/bitcoin/lightning-rpc