File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -351,6 +351,13 @@ server {
351
351
}
352
352
}
353
353
{{else}}
354
+
355
+ {{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }}
356
+ include {{ printf "/etc/nginx/vhost.d/%s" $host }};
357
+ {{ else if (exists "/etc/nginx/vhost.d/default") }}
358
+ include /etc/nginx/vhost.d/default;
359
+ {{ else }}
360
+
354
361
server {
355
362
server_name {{ $host }};
356
363
listen 443 ssl http2 {{ $default_server }};
@@ -415,12 +422,6 @@ server {
415
422
add_header Strict-Transport-Security "{{ trim $hsts }}" always;
416
423
{{ end }}
417
424
418
- {{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }}
419
- include {{ printf "/etc/nginx/vhost.d/%s" $host }};
420
- {{ else if (exists "/etc/nginx/vhost.d/default") }}
421
- include /etc/nginx/vhost.d/default;
422
- {{ end }}
423
-
424
425
location / {
425
426
{{ if eq $proto "uwsgi" }}
426
427
include uwsgi_params;
@@ -444,6 +445,8 @@ server {
444
445
{{ end }}
445
446
}
446
447
}
448
+
449
+ {{ end }}
447
450
{{end}}
448
451
449
452
{{ end }}
You can’t perform that action at this time.
0 commit comments