X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fec6863727052589874a8727fb0cfd2f9cd2ef50..c3be356ba81afff0a666355e018531de69e0a5fb:/cookbooks/imagery/templates/default/nginx_default.conf.erb diff --git a/cookbooks/imagery/templates/default/nginx_default.conf.erb b/cookbooks/imagery/templates/default/nginx_default.conf.erb index d3b8584a3..cb629d59b 100644 --- a/cookbooks/imagery/templates/default/nginx_default.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_default.conf.erb @@ -1,6 +1,10 @@ server { - listen 80 fastopen=1024 default_server; + listen 80 deferred backlog=16384 reuseport default_server; + listen 443 ssl deferred backlog=16384 reuseport http2; # No default_server here unless certificate specified here too. + listen [::]:80 deferred backlog=16384 reuseport default_server; + listen [::]:443 ssl deferred backlog=16384 reuseport http2; # No default_server here unless certificate specified here too. + server_name _; - return 404 'default imagery server vhost. Please use correct URL.'; - add_header Content-Type text/plain; + default_type text/html; + return 404 '