diff --git a/nginx.tmpl b/nginx.tmpl index e7d77c9..4297744 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -83,7 +83,7 @@ {{ else if (exists "/etc/nginx/vhost.d/default_location") }} include /etc/nginx/vhost.d/default_location; {{ end }} -} + } {{ end }} {{ define "upstream" }} @@ -329,7 +329,7 @@ server { {{ end }} {{ $access_log }} - # Do not HTTPS redirect Let'sEncrypt ACME challenge + # Do not HTTPS redirect ACME challenge location ^~ /.well-known/acme-challenge/ { auth_basic off; auth_request off; @@ -409,9 +409,9 @@ server { {{ template "location" (dict "Path" $path "Proto" $proto "Upstream" $upstream "Host" $host "VhostRoot" $vhost_root "Dest" $dest "NetworkTag" $network_tag) }} {{ end }} {{ if (not (contains $paths "/")) }} - location / { - return {{ $default_root_response }}; - } + location / { + return {{ $default_root_response }}; + } {{ end }} {{ end }} } @@ -457,9 +457,9 @@ server { {{ template "location" (dict "Path" $path "Proto" $proto "Upstream" $upstream "Host" $host "VhostRoot" $vhost_root "Dest" $dest "NetworkTag" $network_tag) }} {{ end }} {{ if (not (contains $paths "/")) }} - location / { - return {{ $default_root_response }}; - } + location / { + return {{ $default_root_response }}; + } {{ end }} {{ end }} }