From 79e742d4b7d02393475d02b6549391eec4a96185 Mon Sep 17 00:00:00 2001 From: Alex Palaistras Date: Sat, 27 Nov 2021 17:44:03 +0000 Subject: [PATCH] nginx: Actually set default server for port 80 Our previous setup did not ensure that the default server was actually the default (though doing this for port 443 remains an open question). In addition, we now have Nginx close the connection immediately rather than respond with a 204. --- config/service/nginx/container/config/conf.d/default.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/service/nginx/container/config/conf.d/default.conf b/config/service/nginx/container/config/conf.d/default.conf index 647bbc8..db22c4b 100644 --- a/config/service/nginx/container/config/conf.d/default.conf +++ b/config/service/nginx/container/config/conf.d/default.conf @@ -1,6 +1,6 @@ # Default service, when no other service host matches. server { - listen 80; - server_name localhost; - return 204; + listen 80 default_server; + server_name _; + return 444; }