2018-02-20 21:28:14 +01:00
|
|
|
user {{ main_template_user }};
|
2018-04-05 01:21:03 +02:00
|
|
|
worker_processes {{ main_template_worker_processes }};
|
2018-01-26 20:00:26 +01:00
|
|
|
|
2018-02-20 21:28:14 +01:00
|
|
|
error_log /var/log/nginx/error.log {{ main_template_error_level }};
|
2018-01-26 20:00:26 +01:00
|
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
|
|
|
|
|
|
|
events {
|
2018-02-20 21:28:14 +01:00
|
|
|
worker_connections {{ main_template_worker_connections }};
|
2018-01-26 20:00:26 +01:00
|
|
|
}
|
|
|
|
|
2018-02-20 21:28:14 +01:00
|
|
|
{% if http_template_enable %}
|
2018-01-26 20:00:26 +01:00
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
|
|
|
|
access_log /var/log/nginx/access.log main;
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
#tcp_nopush on;
|
|
|
|
|
2018-02-20 21:28:14 +01:00
|
|
|
keepalive_timeout {{ main_template_keepalive_timeout }};
|
2018-01-26 20:00:26 +01:00
|
|
|
|
|
|
|
#gzip on;
|
|
|
|
|
2018-02-20 21:28:14 +01:00
|
|
|
include /etc/nginx/conf.d/http/*.conf;
|
|
|
|
}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if stream_template_enable %}
|
|
|
|
stream {
|
|
|
|
include /etc/nginx/conf.d/stream/*.conf;
|
2018-01-26 20:00:26 +01:00
|
|
|
}
|
2018-02-20 21:28:14 +01:00
|
|
|
{% endif %}
|