mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2025-12-19 01:34:20 +01:00
Rename VIRTUAL_SERVICE_NAME to VIRTUAL_HOST_NAME
This commit is contained in:
@@ -159,7 +159,7 @@ upstream {{ $upstream_name }} {
|
|||||||
{{/* Get the VIRTUAL_PROTO defined by containers w/ the same vhost, falling back to "http" */}}
|
{{/* Get the VIRTUAL_PROTO defined by containers w/ the same vhost, falling back to "http" */}}
|
||||||
{{ $proto := trim (or (first (groupByKeys $containers "Env.VIRTUAL_PROTO")) "http") }}
|
{{ $proto := trim (or (first (groupByKeys $containers "Env.VIRTUAL_PROTO")) "http") }}
|
||||||
|
|
||||||
{{ $service_name := trim (or (first (groupByKeys $containers "Env.VIRTUAL_SERVICE_NAME")) "") }}
|
{{ $host_name := trim (or (first (groupByKeys $containers "Env.VIRTUAL_HOST_NAME")) "") }}
|
||||||
|
|
||||||
{{/* Get the NETWORK_ACCESS defined by containers w/ the same vhost, falling back to "external" */}}
|
{{/* Get the NETWORK_ACCESS defined by containers w/ the same vhost, falling back to "external" */}}
|
||||||
{{ $network_tag := or (first (groupByKeys $containers "Env.NETWORK_ACCESS")) "external" }}
|
{{ $network_tag := or (first (groupByKeys $containers "Env.NETWORK_ACCESS")) "external" }}
|
||||||
@@ -299,7 +299,7 @@ server {
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
}
|
}
|
||||||
|
|
||||||
{{ if eq $service_name "btcpay" }}
|
{{ if eq $host_name "btcpay" }}
|
||||||
{{ 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") }}
|
||||||
@@ -350,7 +350,7 @@ server {
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if eq $service_name "librepatron" }}
|
{{ if eq $host_name "librepatron" }}
|
||||||
{{ range $container := $ }}
|
{{ range $container := $ }}
|
||||||
{{ $serviceName := (index $container.Labels "com.docker.compose.service") }}
|
{{ $serviceName := (index $container.Labels "com.docker.compose.service") }}
|
||||||
{{ if (eq $serviceName "isso") }}
|
{{ if (eq $serviceName "isso") }}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ services:
|
|||||||
VIRTUAL_NETWORK: nginx-proxy
|
VIRTUAL_NETWORK: nginx-proxy
|
||||||
VIRTUAL_PORT: 49392
|
VIRTUAL_PORT: 49392
|
||||||
VIRTUAL_HOST: ${BTCPAY_HOST}
|
VIRTUAL_HOST: ${BTCPAY_HOST}
|
||||||
VIRTUAL_SERVICE_NAME: "btcpay"
|
VIRTUAL_HOST_NAME: "btcpay"
|
||||||
SSL_POLICY: Mozilla-Modern
|
SSL_POLICY: Mozilla-Modern
|
||||||
|
|
||||||
# Let's encrypt settings
|
# Let's encrypt settings
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ services:
|
|||||||
VIRTUAL_HOST: ${LIBREPATRON_HOST}
|
VIRTUAL_HOST: ${LIBREPATRON_HOST}
|
||||||
LETSENCRYPT_HOST: ${LIBREPATRON_HOST}
|
LETSENCRYPT_HOST: ${LIBREPATRON_HOST}
|
||||||
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL:-<no value>}
|
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL:-<no value>}
|
||||||
VIRTUAL_SERVICE_NAME: "librepatron"
|
VIRTUAL_HOST_NAME: "librepatron"
|
||||||
|
|
||||||
isso:
|
isso:
|
||||||
container_name: isso
|
container_name: isso
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ services:
|
|||||||
LETSENCRYPT_HOST: ${WOOCOMMERCE_HOST}
|
LETSENCRYPT_HOST: ${WOOCOMMERCE_HOST}
|
||||||
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL:-<no value>}
|
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL:-<no value>}
|
||||||
VIRTUAL_HOST: ${WOOCOMMERCE_HOST}
|
VIRTUAL_HOST: ${WOOCOMMERCE_HOST}
|
||||||
VIRTUAL_SERVICE_NAME: "woocommerce"
|
VIRTUAL_HOST_NAME: "woocommerce"
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
links:
|
links:
|
||||||
|
|||||||
Reference in New Issue
Block a user