Browse Source

Prevent Nginx Information Disclosure

migrate-pregen
nicolas.dorier 7 years ago
parent
commit
1f9520e13d
  1. 3
      Production/nginx.tmpl

3
Production/nginx.tmpl

@ -46,6 +46,9 @@ map $http_upgrade $proxy_connection {
# Apply fix for very long server names
server_names_hash_bucket_size 128;
# Prevent Nginx Information Disclosure
server_tokens off;
# Default dhparam
{{ if (exists "/etc/nginx/dhparam/dhparam.pem") }}
ssl_dhparam /etc/nginx/dhparam/dhparam.pem;

Loading…
Cancel
Save