| Current Path : /etc/nginx/ |
| Current File : //etc/nginx/nginx.conf |
###############################################################################
# Nginx main configuration file
#
# DO NOT EDIT THIS FILE. YOUR CHANGES WILL BE OVERWRITTEN ON UPDATE.
# To override directives from this file, `touch /etc/nginx/.enable_override`,
# then create a file in /etc/nginx/conf.d with the directives you wish
# to set. Then run `nginx-validate -d --fix` before reloading nginx.
#
##
##
# Global Service Options
##
user nginx nobody;
worker_processes 8;
worker_cpu_affinity auto;
worker_shutdown_timeout 4;
worker_rlimit_nofile 8192;
pid /var/run/nginx.pid;
pcre_jit on;
error_log /var/log/nginx/error.log;
events {
worker_connections 768;
multi_accept on;
}
http {
##
# HTTP Options
##
sendfile on;
tcp_nopush on;
tcp_nodelay off;
keepalive_timeout 30;
reset_timedout_connection on;
types_hash_max_size 8192;
server_names_hash_max_size 8192;
server_names_hash_bucket_size 128;
##
# File metadata cache
##
open_file_cache max=16536 inactive=8m;
open_file_cache_valid 2m;
open_file_cache_min_uses 1;
open_file_cache_errors off;
##
# Client request settings
##
client_body_buffer_size 1m;
client_header_buffer_size 2k;
client_max_body_size 512m;
##
# MIME
##
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Proxy & Cache config
##
proxy_cache_key "$scheme$request_method$host$request_uri";
proxy_buffer_size 32k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_hide_header Upgrade;
##
# Logging & misc config
##
include /etc/nginx/conf.d/*.conf;
##
# Virtual Host Configs
##
include /etc/nginx/vhosts/*.conf;
}