btcpayserver: support restarting from the web interface
This is required since version 1.7.4. See: https://github.com/btcpayserver/btcpayserver/releases/tag/v1.7.4
This commit is contained in:
parent
f26216b624
commit
2344acbf42
@ -9,6 +9,9 @@ with lib;
|
|||||||
services.btcpayserver.enable = true;
|
services.btcpayserver.enable = true;
|
||||||
test.container.exposeLocalhost = true;
|
test.container.exposeLocalhost = true;
|
||||||
# services.btcpayserver.lbtc = false;
|
# services.btcpayserver.lbtc = false;
|
||||||
|
|
||||||
|
# Required for testing interactive plugin installation
|
||||||
|
test.container.enableWAN = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# A node with internet access to test joinmarket-ob-watcher
|
# A node with internet access to test joinmarket-ob-watcher
|
||||||
|
@ -236,11 +236,16 @@ in {
|
|||||||
--datadir='${cfg.btcpayserver.dataDir}'
|
--datadir='${cfg.btcpayserver.dataDir}'
|
||||||
'';
|
'';
|
||||||
User = cfg.btcpayserver.user;
|
User = cfg.btcpayserver.user;
|
||||||
Restart = "on-failure";
|
# Also restart after the program has exited successfully.
|
||||||
RestartSec = "10s";
|
# This is required to support restarting from the web interface after
|
||||||
|
# interactive plugin installation.
|
||||||
|
# Restart rate limiting is implemented via the `startLimit*` options below.
|
||||||
|
Restart = "always";
|
||||||
ReadWritePaths = [ cfg.btcpayserver.dataDir ];
|
ReadWritePaths = [ cfg.btcpayserver.dataDir ];
|
||||||
MemoryDenyWriteExecute = false;
|
MemoryDenyWriteExecute = false;
|
||||||
} // nbLib.allowedIPAddresses cfg.btcpayserver.tor.enforce;
|
} // nbLib.allowedIPAddresses cfg.btcpayserver.tor.enforce;
|
||||||
|
startLimitIntervalSec = 30;
|
||||||
|
startLimitBurst = 10;
|
||||||
}; in self;
|
}; in self;
|
||||||
|
|
||||||
users.users.${cfg.nbxplorer.user} = {
|
users.users.${cfg.nbxplorer.user} = {
|
||||||
|
Loading…
Reference in New Issue
Block a user