Update to 2024-09-05 14:00

This commit is contained in:
Daniel Berteaud
2024-09-05 14:00:33 +02:00
parent 016615d07b
commit cfdb99fc4e
4 changed files with 705 additions and 3 deletions

View File

@@ -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] }}";