Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.

Commit

Permalink
fix: add nginx_extra_conf_http_options
Browse files Browse the repository at this point in the history
  • Loading branch information
saitho committed Dec 19, 2020
1 parent 8ba569c commit fa28d00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks/steps/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
__nginx_user: "stackhead"
root_group: "stackhead"
nginx_extra_conf_options: "{{ module.config.extra_conf_options|default({}) }}"
nginx_extra_conf_http_options: "{{ module.config.extra_conf_http_options|default({}) }}"
include_role:
name: geerlingguy.nginx
- name: adjust owner of /var/www directories
Expand Down
6 changes: 6 additions & 0 deletions templates/nginx/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ events {
{% endblock %}

http {
{% if nginx_extra_conf_http_options %}
{% for k,v in nginx_extra_conf_http_options.items() %}
{{ k }} {{ v }};
{% endfor %}
{% endif %}

{% block http_begin %}
# Enable gzip compression.
include /etc/nginx/h5bp/web_performance/compression.conf;
Expand Down

0 comments on commit fa28d00

Please sign in to comment.