Skip to content

Commit ca7097d

Browse files
committed
Merge pull request #2 from hellofresh/feature/nginx-extra-global-vars
Extra global vars for Nginx.
2 parents 28f287c + 61b251d commit ca7097d

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)