From bc81ac69035c04bc5d4ffd67b7c7bf4c42b34a7e Mon Sep 17 00:00:00 2001 From: David Parrish Date: Fri, 27 Nov 2015 12:34:34 -0500 Subject: [PATCH] Change LETSENCRYPT_HOST delimiter to a comma --- README.md | 2 +- letsencrypt_service_data.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 82e15b8..c37733e 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ Set the following environment variables to enable Let's Encrypt support for a co - `LETSENCRYPT_HOST` - `LETSENCRYPT_EMAIL` -The `LETSENCRYPT_HOST` variable most likely needs to be the same as the `VIRTUAL_HOSTS` variable and must be publicly reachable domains. Specify multiple hosts with a space delimiter. +The `LETSENCRYPT_HOST` variable most likely needs to be the same as the `VIRTUAL_HOST` variable and must be publicly reachable domains. Specify multiple hosts with a comma delimiter. After the first start, the nginx-proxy will need to be restarted again. This is because the nginx configuration needs to be regenerated after downloading the Let's Encrypt certificate. diff --git a/letsencrypt_service_data.tmpl b/letsencrypt_service_data.tmpl index 32133c1..7c2933f 100644 --- a/letsencrypt_service_data.tmpl +++ b/letsencrypt_service_data.tmpl @@ -3,7 +3,7 @@ LETSENCRYPT_CONTAINERS=({{ range $host, $containers := groupBy $ "Env.LETSENCRYP {{ range $hosts, $containers := groupBy $ "Env.LETSENCRYPT_HOST" }} {{ range $container := $containers }} -LETSENCRYPT_{{ $container.ID }}_HOST=( {{ range $host := split $hosts " " }}'{{ $host }}' {{ end }}) +LETSENCRYPT_{{ $container.ID }}_HOST=( {{ range $host := split $hosts "," }}'{{ $host }}' {{ end }}) LETSENCRYPT_{{ $container.ID }}_EMAIL="{{ $container.Env.LETSENCRYPT_EMAIL }}" {{ end }}