Skip to content

feat: Add uwsgi template support #569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ FEATURES:
- Add validation tasks to check the Ansible version, the Jinja2 version, and whether the required Ansible collections for this role are installed.
- Bump the Ansible `community.general` collection to `9.2.0`, `community.crypto` collection to `2.21.1` and `community.docker` collection to `3.11.0`.
- Add templating support for the `ngx_mgmt_module`, `ngx_http_gzip_static_module`, and `ngx_stream_map_module` NGINX modules.
- Now support uwsgi using the uwsgi_pass directive

BUG FIXES:

Expand Down
1 change: 1 addition & 0 deletions defaults/main/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ nginx_config_http_template:
underscores_in_headers: false # Boolean -- Not available in the 'location' context
variables_hash_bucket_size: 64 # Available only in the 'http' context
variables_hash_max_size: 1024 # Available only in the 'http' context
uwsgi_pass: upstreamserver # Available only in the 'location' context
http2: # Configure HTTP2
enable: false # Boolean -- Not available in the 'location' context
body_preread_size: 64k # Not available in the 'location' context
Expand Down
3 changes: 3 additions & 0 deletions templates/http/core.j2
Original file line number Diff line number Diff line change
Expand Up @@ -289,5 +289,8 @@ variables_hash_bucket_size {{ core['variables_hash_bucket_size'] }};
{% if core['variables_hash_max_size'] is defined %}{# 'variables_hash_max_size' directive is only available in the 'http' context #}
variables_hash_max_size {{ core['variables_hash_max_size'] }};
{% endif %}
{% if core['uwsgi_pass'] is defined %}{# 'uwsgi_pass' directive is only available in the 'location' context #}
uwsgi_pass {{ core['uwsgi_pass'] }};
{% endif %}

{% endmacro %}
Loading