trustedcoin: explicitly use the HTTPS_PROXY for external connections

This commit is contained in:
Otto Sabart 2023-04-13 21:00:00 +02:00 committed by Greg Shuflin
parent bf6f9f8fae
commit fd000e7a14
1 changed files with 6 additions and 0 deletions

View File

@ -18,5 +18,11 @@ let cfg = config.services.clightning.plugins.trustedcoin; in
plugin=${cfg.package}/bin/trustedcoin
disable-plugin=bcli
'';
# Trustedcoin does not honor the clightning's proxy configuration.
# Ref.: https://github.com/nbd-wtf/trustedcoin/pull/19
systemd.services.clightning.environment = mkIf (config.services.clightning.proxy != null) {
HTTPS_PROXY = "socks5://${config.services.clightning.proxy}";
};
};
}