style: indentation + remove reference to LE

This commit is contained in:
Nicolas Duchon 2022-12-27 22:06:07 +01:00
parent 2f898566fc
commit 248dc28fd3

View File

@ -83,7 +83,7 @@
{{ else if (exists "/etc/nginx/vhost.d/default_location") }} {{ else if (exists "/etc/nginx/vhost.d/default_location") }}
include /etc/nginx/vhost.d/default_location; include /etc/nginx/vhost.d/default_location;
{{ end }} {{ end }}
} }
{{ end }} {{ end }}
{{ define "upstream" }} {{ define "upstream" }}
@ -329,7 +329,7 @@ server {
{{ end }} {{ end }}
{{ $access_log }} {{ $access_log }}
# Do not HTTPS redirect Let'sEncrypt ACME challenge # Do not HTTPS redirect ACME challenge
location ^~ /.well-known/acme-challenge/ { location ^~ /.well-known/acme-challenge/ {
auth_basic off; auth_basic off;
auth_request 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) }} {{ template "location" (dict "Path" $path "Proto" $proto "Upstream" $upstream "Host" $host "VhostRoot" $vhost_root "Dest" $dest "NetworkTag" $network_tag) }}
{{ end }} {{ end }}
{{ if (not (contains $paths "/")) }} {{ if (not (contains $paths "/")) }}
location / { location / {
return {{ $default_root_response }}; return {{ $default_root_response }};
} }
{{ end }} {{ end }}
{{ 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) }} {{ template "location" (dict "Path" $path "Proto" $proto "Upstream" $upstream "Host" $host "VhostRoot" $vhost_root "Dest" $dest "NetworkTag" $network_tag) }}
{{ end }} {{ end }}
{{ if (not (contains $paths "/")) }} {{ if (not (contains $paths "/")) }}
location / { location / {
return {{ $default_root_response }}; return {{ $default_root_response }};
} }
{{ end }} {{ end }}
{{ end }} {{ end }}
} }