Skip to content

Commit b3da65c

Browse files
feat: add uwsgi support
1 parent 82a1727 commit b3da65c

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ FEATURES:
77
- Add validation tasks to check the Ansible version, the Jinja2 version, and whether the required Ansible collections for this role are installed.
88
- 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`.
99
- Add templating support for the `ngx_mgmt_module`, `ngx_http_gzip_static_module`, and `ngx_stream_map_module` NGINX modules.
10+
- Now support uwsgi using the uwsgi_pass directive
1011

1112
BUG FIXES:
1213

defaults/main/template.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ nginx_config_http_template:
293293
underscores_in_headers: false # Boolean -- Not available in the 'location' context
294294
variables_hash_bucket_size: 64 # Available only in the 'http' context
295295
variables_hash_max_size: 1024 # Available only in the 'http' context
296+
uwsgi_pass: upstreamserver # Available only in the 'location' context
296297
http2: # Configure HTTP2
297298
enable: false # Boolean -- Not available in the 'location' context
298299
body_preread_size: 64k # Not available in the 'location' context

templates/http/core.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,5 +289,8 @@ variables_hash_bucket_size {{ core['variables_hash_bucket_size'] }};
289289
{% if core['variables_hash_max_size'] is defined %}{# 'variables_hash_max_size' directive is only available in the 'http' context #}
290290
variables_hash_max_size {{ core['variables_hash_max_size'] }};
291291
{% endif %}
292+
{% if core['uwsgi_pass'] is defined %}{# 'uwsgi_pass' directive is only available in the 'location' context #}
293+
uwsgi_pass {{ core['uwsgi_pass'] }};
294+
{% endif %}
292295

293296
{% endmacro %}

0 commit comments

Comments
 (0)