mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2026-01-31 19:14:31 +01:00
Route lnrpc.Lightning if the lnd container exists
This commit is contained in:
@@ -298,11 +298,13 @@ server {
|
||||
{{ end }}
|
||||
}
|
||||
|
||||
{{ if (exists "/lnd/tls.cert") }}
|
||||
location /lnrpc.Lightning {
|
||||
grpc_pass grpcs://lnd_bitcoin:10009;
|
||||
grpc_ssl_trusted_certificate /lnd/tls.cert;
|
||||
}
|
||||
{{ range $container := $ }}
|
||||
{{ $serviceName := (index $container.Labels "com.docker.compose.service") }}
|
||||
{{ if (eq $serviceName "lnd_bitcoin") }}
|
||||
location /lnrpc.Lightning {
|
||||
grpc_pass grpcs://lnd_bitcoin:10009;
|
||||
}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user