mirror of
https://github.com/atareao/self-hosted.git
synced 2024-07-06 14:02:16 +02:00
38 lines
978 B
Nginx Configuration File
38 lines
978 B
Nginx Configuration File
worker_processes auto; # use "grep processor /proc/cpuinfo | wc -l" and type the number here, or stay with automatic configuration
|
|
|
|
events {
|
|
worker_connections 1024; # use "ulimit -n" and type the number here
|
|
}
|
|
|
|
http {
|
|
############# NGINX conf
|
|
include /etc/nginx/mime.types;
|
|
include /etc/nginx/fastcgi.conf;
|
|
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
server_names_hash_bucket_size 128;
|
|
|
|
############## NGINX security
|
|
server_tokens off;
|
|
proxy_hide_header X-Powered-By;
|
|
client_body_buffer_size 10K;
|
|
client_header_buffer_size 1k;
|
|
client_max_body_size 8M;
|
|
large_client_header_buffers 2 1k;
|
|
|
|
client_body_timeout 12;
|
|
client_header_timeout 12;
|
|
keepalive_timeout 15;
|
|
send_timeout 10;
|
|
|
|
gzip on;
|
|
gzip_comp_level 2;
|
|
gzip_min_length 1000;
|
|
gzip_proxied expired no-cache no-store private auth;
|
|
gzip_types text/plain application/x-javascript text/xml text/css application/xml;
|
|
|
|
############# WP conf
|
|
include /etc/nginx/wp.conf;
|
|
}
|