mirror of
https://github.com/Retropex/btcpayserver-docker.git
synced 2025-05-13 05:20:40 +02:00
Exposing LND Rest
This commit is contained in:
parent
c6caa6a8ce
commit
8a51da92ad
@ -296,13 +296,17 @@ server {
|
|||||||
{{ else if (exists "/etc/nginx/vhost.d/default_location") }}
|
{{ else if (exists "/etc/nginx/vhost.d/default_location") }}
|
||||||
include /etc/nginx/vhost.d/default_location;
|
include /etc/nginx/vhost.d/default_location;
|
||||||
{{ end }}
|
{{ end }}
|
||||||
}
|
}
|
||||||
|
|
||||||
{{ range $container := $ }}
|
{{ range $container := $ }}
|
||||||
{{ $serviceName := (index $container.Labels "com.docker.compose.service") }}
|
{{ $serviceName := (index $container.Labels "com.docker.compose.service") }}
|
||||||
{{ if (eq $serviceName "lnd_bitcoin") }}
|
{{ if (eq $serviceName "lnd_bitcoin") }}
|
||||||
location /lnrpc.Lightning {
|
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 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user