X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fec6863727052589874a8727fb0cfd2f9cd2ef50..cf2a19d4f045022ce3d2ee494145d57e7a2fe462:/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..51670c715 100644 --- a/cookbooks/imagery/templates/default/nginx_default.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_default.conf.erb @@ -1,6 +1,8 @@ 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. + server_name _; - return 404 'default imagery server vhost. Please use correct URL.'; - add_header Content-Type text/plain; + default_type text/html; + return 404 '