2016-09-27 19:33:52 +02:00
|
|
|
user www-data;
|
|
|
|
pid /run/nginx.pid;
|
2017-03-16 11:37:10 +01:00
|
|
|
{% if nginx_use_ppa %}
|
|
|
|
worker_processes auto;
|
|
|
|
include /etc/nginx/modules-enabled/*.conf;
|
|
|
|
{% else %}
|
|
|
|
worker_processes {{ nginx_workers }};
|
|
|
|
{% endif %}
|
2016-09-27 19:33:52 +02:00
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections {{ nginx_worker_connections }};
|
|
|
|
multi_accept {{ nginx_multi_accept }};
|
|
|
|
}
|
|
|
|
worker_rlimit_nofile {{ nginx_worker_rlimit_nofile }};
|
|
|
|
|
|
|
|
http {
|
|
|
|
sendfile on;
|
|
|
|
tcp_nopush on;
|
|
|
|
tcp_nodelay on;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
types_hash_max_size 2048;
|
|
|
|
server_tokens {{ nginx_server_tokens }};
|
|
|
|
# server_names_hash_bucket_size 64;
|
|
|
|
# server_name_in_redirect off;
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
2016-11-18 11:08:14 +01:00
|
|
|
large_client_header_buffers {{ nginx_large_client_header_buffers }};
|
2016-09-27 19:33:52 +02:00
|
|
|
##
|
|
|
|
# Logging Settings
|
|
|
|
##
|
|
|
|
access_log /var/log/nginx/access.log;
|
|
|
|
error_log /var/log/nginx/error.log;
|
|
|
|
|
|
|
|
include /etc/nginx/conf.d/*.conf;
|
|
|
|
{% if nginx_enable_compression %}
|
|
|
|
include /etc/nginx/snippets/nginx-compression.conf;
|
|
|
|
{% endif %}
|
|
|
|
{% if nginx_websockets_support %}
|
|
|
|
include /etc/nginx/snippets/nginx-websockets.conf;
|
|
|
|
{% endif %}
|
|
|
|
include /etc/nginx/sites-enabled/*;
|
|
|
|
}
|
|
|
|
|