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