Browse Source

expose gRPC

migrate-pregen
nicolas.dorier 7 years ago
parent
commit
38210857ab
  1. 7
      Production/nginx.tmpl
  2. 12
      docker-compose-generator/docker-fragments/bitcoin-lnd.yml

7
Production/nginx.tmpl

@ -297,6 +297,13 @@ server {
include /etc/nginx/vhost.d/default_location;
{{ end }}
}
{{ if (exists "/lnd/tls.cert") }}
location /lnrpc.Lightning {
grpc_pass grpcs://lnd_bitcoin:10009;
grpc_ssl_trusted_certificate /lnd/tls.cert;
}
{{ end }}
}
{{ end }}

12
docker-compose-generator/docker-fragments/bitcoin-lnd.yml

@ -10,6 +10,7 @@ services:
LND_ENVIRONMENT: "${NBITCOIN_NETWORK:-regtest}"
LND_EXTRA_ARGS: |
restlisten=0.0.0.0:8080
rpclisten=0.0.0.0:10009
bitcoin.node=bitcoind
bitcoind.rpchost=bitcoind:43782
bitcoind.zmqpath=tcp://bitcoind:28332
@ -45,6 +46,17 @@ services:
zmqpubhashblock=tcp://0.0.0.0:28332
expose:
- "28332"
nginx:
links:
- "lnd_bitcoin"
volumes:
- "lnd_bitcoin_datadir:/lnd"
nginx-gen:
links:
- "lnd_bitcoin"
volumes:
- "lnd_bitcoin_datadir:/lnd"
volumes:
lnd_bitcoin_datadir:
Loading…
Cancel
Save