clightning.plugins.clnrest: init

This commit is contained in:
Erik Arvstedt 2024-10-10 12:13:12 +02:00
parent c0994bfc7b
commit e74ddd9464
No known key found for this signature in database
GPG key ID: 33312B944DD97846
9 changed files with 151 additions and 6 deletions

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: ''