bookstack-ppm/app/nginx.conf

55 lines
1.0 KiB
Nginx Configuration File
Raw Permalink Normal View History

2018-06-10 14:13:09 +00:00
worker_processes auto;
2019-07-31 20:25:17 +00:00
pid /tmp/nginx.pid;
2018-06-10 14:13:09 +00:00
daemon on;
events {
2019-07-31 21:49:33 +00:00
worker_connections 1024;
2018-06-10 14:13:09 +00:00
}
http {
2019-07-31 21:49:33 +00:00
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
server_tokens off; # Do not announce nginx's version to the world!
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Proxy Settings
##
proxy_buffering off;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/sites-enabled/*;
2018-06-10 14:13:09 +00:00
}