From 8a51da92ad2b84e0ec90ac6b0c5cfd786efd6543 Mon Sep 17 00:00:00 2001 From: rockstardev Date: Thu, 25 Oct 2018 21:14:28 -0500 Subject: [PATCH] Exposing LND Rest --- Production/nginx.tmpl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Production/nginx.tmpl b/Production/nginx.tmpl index f47dc1e..84ffaf5 100644 --- a/Production/nginx.tmpl +++ b/Production/nginx.tmpl @@ -296,13 +296,17 @@ server { {{ else if (exists "/etc/nginx/vhost.d/default_location") }} include /etc/nginx/vhost.d/default_location; {{ end }} - } + } {{ range $container := $ }} {{ $serviceName := (index $container.Labels "com.docker.compose.service") }} {{ if (eq $serviceName "lnd_bitcoin") }} location /lnrpc.Lightning { - grpc_pass grpcs://lnd_bitcoin:10009; + grpc_pass grpcs://lnd_bitcoin:10009; + } + location /lnd-rest/btc/ { + rewrite ^/lnd-rest/btc/(.*) /$1 break; + proxy_pass http://lnd_bitcoin:8080/; } {{ end }} {{ end }}