ansible-role-nginx/templates/opensource/nginx.conf.j2
2018-01-26 11:00:26 -08:00

32 lines
897 B
Django/Jinja

user {{ configuration_templates.opensource.user }};
worker_processes {{ configuration_templates.opensource.worker_processes }};
error_log /var/log/nginx/error.log {{ configuration_templates.opensource.error_level }};
pid /var/run/nginx.pid;
events {
worker_connections {{ configuration_templates.opensource.worker_connections }};
}
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;
keepalive_timeout {{ configuration_templates.opensource.keepalive_timeout }};
#gzip on;
include /etc/nginx/conf.d/*.conf;
}