From 248dc28fd3cb08ba2c93a2c86ae5be170b9d4a42 Mon Sep 17 00:00:00 2001 From: Nicolas Duchon Date: Tue, 27 Dec 2022 22:06:07 +0100 Subject: [PATCH] style: indentation + remove reference to LE --- nginx.tmpl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 }} }