From fd000e7a14f3f00b5c15e68a8ee009454cd0b6f6 Mon Sep 17 00:00:00 2001 From: Otto Sabart Date: Thu, 13 Apr 2023 21:00:00 +0200 Subject: [PATCH] trustedcoin: explicitly use the HTTPS_PROXY for external connections --- modules/clightning-plugins/trustedcoin.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/clightning-plugins/trustedcoin.nix b/modules/clightning-plugins/trustedcoin.nix index a4f330a..624e92d 100644 --- a/modules/clightning-plugins/trustedcoin.nix +++ b/modules/clightning-plugins/trustedcoin.nix @@ -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}"; + }; }; }