Skip to content

Commit 61b251d

Browse files
committed
Extra global vars for Nginx.
1 parent 28f287c commit 61b251d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/nginx.conf.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ user www www;
1010
worker_processes {{ ansible_processor_count }};
1111
pid /var/run/nginx.pid;
1212

13+
{% if nginx_extra_global_vars is defined %}
14+
# Extra global vars for Nginx
15+
{% for k,v in nginx_extra_global_vars.iteritems() %}
16+
{{ k }} {{ v }};
17+
{% endfor %}
18+
{% endif %}
19+
1320
events {
1421
worker_connections {{ nginx_max_clients }};
1522
}

0 commit comments

Comments
 (0)