Role to install nginx websites
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
websites/files/nginx.conf

43 lines
899 B

user http;
worker_processes 4;
error_log /var/log/nginx/error.log info;
#error_log logs/error.log notice;
events {
worker_connections 1024;
}
http {
include mime.types;
include redir.conf;
include conf.d/*.conf;
default_type application/octet-stream;
server_names_hash_bucket_size 64;
types_hash_max_size 4096;
index index.xhtml index.html index.htm;
port_in_redirect off;
add_header X-Frame-Options DENY;
add_header Referrer-policy "no-referrer";
add_header Expect-CT "enforce; max-age=86400";
#add_header X-Content-Type-Options nosniff;
#add_header Content-Security-Policy "script-src 'self'";
add_header X-XSS-Protection "1; mode=block";
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
#keepalive_timeout 65;
gzip on;
}