From 7e9b720de8abf70852e2d339d065e164eb31ed5c Mon Sep 17 00:00:00 2001 From: faulty Date: Sun, 19 Feb 2023 15:24:28 +0100 Subject: [PATCH] test ++ --- custom/proxy/config/nginx.conf | 13 ------------- custom/proxy/config/nginx.tmpl | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/custom/proxy/config/nginx.conf b/custom/proxy/config/nginx.conf index c972614..db3b14f 100644 --- a/custom/proxy/config/nginx.conf +++ b/custom/proxy/config/nginx.conf @@ -30,19 +30,6 @@ http { 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; \ No newline at end of file diff --git a/custom/proxy/config/nginx.tmpl b/custom/proxy/config/nginx.tmpl index 41afcfe..e9b121d 100644 --- a/custom/proxy/config/nginx.tmpl +++ b/custom/proxy/config/nginx.tmpl @@ -297,7 +297,7 @@ server { location = /50x.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")) }} listen {{ $globals.external_https_port }} ssl http2;