clightning.plugins.clnrest: init

This commit is contained in:
Erik Arvstedt
2024-11-27 18:48:24 +01:00
parent c0994bfc7b
commit e74ddd9464
9 changed files with 151 additions and 6 deletions
+4 -1
View File
@@ -142,6 +142,10 @@ in {
'') + ''
info["nodeid"] = shell("lncli getinfo | jq -r '.identity_pubkey'")
'') name cfg;
clnrest = name: cfg: mkInfoLong {
inherit name cfg;
systemdServiceName = "clightning";
};
clightning-rest = mkInfo "";
electrs = mkInfo "";
fulcrum = mkInfo "";
@@ -153,7 +157,6 @@ in {
mempool-frontend = name: cfg: mkInfoLong {
inherit name cfg;
systemdServiceName = "nginx";
extraCode = "";
};
# Only add sshd when it has an onion service
sshd = name: cfg: mkIfOnionPort "sshd" (onionPort: ''