From 6389365448d3fdf16a261b0279ab93da175164af Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 17 Dec 2018 22:29:00 +0900 Subject: [PATCH] Change the default https host --- Production/nginx.tmpl | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Production/nginx.tmpl b/Production/nginx.tmpl index 8691739..c091e18 100644 --- a/Production/nginx.tmpl +++ b/Production/nginx.tmpl @@ -102,22 +102,6 @@ server { return 503; } -{{ if (and (exists "/etc/nginx/certs/default.crt") (exists "/etc/nginx/certs/default.key")) }} -server { - server_name _; # This is just an invalid value which will never trigger on a real hostname. - listen 443 ssl http2; - {{ if $enable_ipv6 }} - listen [::]:443 ssl http2; - {{ end }} - access_log /var/log/nginx/access.log vhost; - return 503; - - ssl_session_tickets off; - ssl_certificate /etc/nginx/certs/default.crt; - ssl_certificate_key /etc/nginx/certs/default.key; -} -{{ end }} - {{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }} {{ $host := trim $host }} @@ -388,4 +372,20 @@ server { {{ end }} {{ end }} +{{ end }} + +{{ if (and (exists "/etc/nginx/certs/default.crt") (exists "/etc/nginx/certs/default.key")) }} +server { + server_name _; # This is just an invalid value which will never trigger on a real hostname. + listen 443 ssl http2; + {{ if $enable_ipv6 }} + listen [::]:443 ssl http2; + {{ end }} + access_log /var/log/nginx/access.log vhost; + return 503; + + ssl_session_tickets off; + ssl_certificate /etc/nginx/certs/default.crt; + ssl_certificate_key /etc/nginx/certs/default.key; +} {{ end }} \ No newline at end of file