New server creation — Improve nginx default configuration
/etc/nginx/conf.d/gzip.conf
:
gzip on;
gzip_vary on;
gzip_types application/javascript image/x-icon text/css text/plain image/svg+xml;
/etc/nginx/conf.d/headers.conf
:
add_header X-Content-Type-Options "nosniff";
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
Edited by Antoine Le Gonidec