44 lines
899 B
Nginx Configuration File
44 lines
899 B
Nginx Configuration File
|
|
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;
|
|
}
|