src.nth.io/

summaryrefslogtreecommitdiff
path: root/lnd
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-05-26 07:29:24 -0500
committerLuke Hoersten <[email protected]>2026-05-26 07:29:24 -0500
commit272788e6107e8353b7b21a3a8363be9e8ac62541 (patch)
treead98cbf897008fdeaa5539ba5a394d6333ed261d /lnd
parent6a89fefd2d18fce815d8101727b75efc9d826210 (diff)
Bind lnd restlisten to LAN interface instead of loopbackHEADmain
Nginx reverse proxy on btc.nth.io runs on a separate host from lnd, so 127.0.0.1 binding broke cross-host proxying (502 Bad Gateway). Bind to default_ipv4 to keep REST off other interfaces while still reachable from the proxy host.
Diffstat (limited to 'lnd')
-rw-r--r--lnd/templates/lnd.conf.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/lnd/templates/lnd.conf.j2 b/lnd/templates/lnd.conf.j2
index 60fec71..e35699a 100644
--- a/lnd/templates/lnd.conf.j2
+++ b/lnd/templates/lnd.conf.j2
@@ -9,7 +9,7 @@ alias={{lnd_alias}}
tlsextradomain={{lnd_alias}}
listen=0.0.0.0:9735
rpclisten=127.0.0.1:10009
-restlisten=127.0.0.1:8080
+restlisten={{ansible_facts['default_ipv4']['address']}}:8080
[Bitcoin]
bitcoin.mainnet=true