Browse Source
Merge pull request #55 from rockstardev/feature/lndrest
Exposing LND REST
feature/auto_ssh
Nicolas Dorier
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
7 additions and
2 deletions
-
Production/nginx.tmpl
-
docker-compose-generator/docker-fragments/bitcoin-lnd.yml
|
|
@ -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 }} |
|
|
|
|
|
@ -39,6 +39,7 @@ services: |
|
|
|
environment: |
|
|
|
BTCPAY_BTCLIGHTNING: "type=lnd-rest;server=http://lnd_bitcoin:8080/;macaroonfilepath=/etc/lnd_bitcoin/admin.macaroon;allowinsecure=true" |
|
|
|
BTCPAY_BTCEXTERNALLNDGRPC: "type=lnd-grpc;server=${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/;macaroonfilepath=/etc/lnd_bitcoin/admin.macaroon" |
|
|
|
BTCPAY_BTCEXTERNALLNDREST: "type=lnd-rest;server=${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/lnd-rest/btc/;macaroonfilepath=/etc/lnd_bitcoin/admin.macaroon" |
|
|
|
volumes: |
|
|
|
- "lnd_bitcoin_datadir:/etc/lnd_bitcoin" |
|
|
|
links: |
|
|
|