This commit is contained in:
Didier Slof 2023-02-19 15:24:28 +01:00
parent 68a5e5e82e
commit 7e9b720de8
Signed by: didier
GPG key ID: 01E71F18AA4398E5
2 changed files with 1 additions and 14 deletions

View file

@ -30,19 +30,6 @@ http {
include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;
server {
server_name _; # This is just an invalid value which will never trigger on a real hostname.
listen 80;
access_log /var/log/nginx/access.log vhost;
error_page 503 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
internal;
}
location / {
return 503;
}
}
} }
daemon off; daemon off;

View file

@ -297,7 +297,7 @@ server {
location = /50x.html { location = /50x.html {
root /usr/share/nginx/html; root /usr/share/nginx/html;
} }
return 503; return 503 "i hate nginx";
{{- if (and (exists "/etc/nginx/certs/default.crt") (exists "/etc/nginx/certs/default.key")) }} {{- if (and (exists "/etc/nginx/certs/default.crt") (exists "/etc/nginx/certs/default.key")) }}
listen {{ $globals.external_https_port }} ssl http2; listen {{ $globals.external_https_port }} ssl http2;