mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 00:57:00 +02:00
Update to 2024-09-05 14:00
This commit is contained in:
@@ -18,11 +18,12 @@ server {
|
||||
{% if vhost.ssl.enabled %}
|
||||
{% if vhost.ssl.port is iterable %}
|
||||
{% for port in vhost.ssl.port %}
|
||||
listen {{ port }} ssl http2{% if vhost.name == '_' %} default_server{% endif %};
|
||||
listen {{ port }} ssl{% if vhost.name == '_' %} default_server{% endif %};
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
listen {{ vhost.ssl.port }} ssl http2{% if vhost.name == '_' %} default_server{% endif %};
|
||||
listen {{ vhost.ssl.port }} ssl{% if vhost.name == '_' %} default_server{% endif %};
|
||||
{% endif %}
|
||||
http2 on;
|
||||
|
||||
{% if vhost.ssl.cert is defined and vhost.ssl.key is defined %}
|
||||
ssl_certificate {{ vhost.ssl.cert }};
|
||||
@@ -137,6 +138,10 @@ server {
|
||||
include /etc/nginx/ansible_conf.d/perf.inc;
|
||||
{% endif %}
|
||||
|
||||
{% if vhost.block_bad_bots %}
|
||||
include /etc/nginx/ansible_conf.d/bad_bots.inc;
|
||||
{% endif %}
|
||||
|
||||
{% for header in vhost.headers.keys() %}
|
||||
{% if vhost.headers[header] != False %}
|
||||
add_header {{ header }} "{{ vhost.headers[header] }}";
|
||||
|
Reference in New Issue
Block a user