ansible-nginx/templates/etc/nginx/nginx.conf.j2

31 lines
573 B
Plaintext
Raw Normal View History

2015-07-15 20:18:51 +07:00
#
# {{ ansible_managed }}
#
user {{ nginx_user }};
worker_processes {{ nginx_worker_processes }};
2015-07-30 04:57:54 +07:00
pid /run/nginx.pid;
2015-07-15 20:18:51 +07:00
events {
{% for key, value in nginx_events.iteritems() %}
{{ "\t%-30s %s" | format(key, value) }};
{% endfor %}
}
http {
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
2015-07-30 04:57:54 +07:00
2015-07-15 20:18:51 +07:00
# From Ansible
{% for key, value in nginx_http.iteritems() %}
{{ "\t%-30s %s" | format(key, value) }};
{% endfor %}
# /From Ansible
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
# vim:filetype=nginx