Update to 2022-09-16 10:00

This commit is contained in:
Daniel Berteaud
2022-09-16 10:00:09 +02:00
parent 5f63198ca7
commit 0af60855cc
13 changed files with 32 additions and 24 deletions

View File

@@ -21,13 +21,21 @@ nginx_log_format: combined_virtual
# Some special vhost names can be derived from it. Eg downtime.{{ nginx_primary_domain }}
nginx_primary_domain: "{{ ansible_domain }}"
nginx_cert_path: /etc/nginx/ssl/cert.pem
nginx_key_path: /etc/nginx/ssl/key.pem
# OR
#
# nginx_letsencrypt_cert:
# Default nginx vhost
# The root of the default_server vhost
nginx_root: /usr/share/nginx/html
# If autoindex should be enabled for the default_server vhost
nginx_autoindex: False
# Default nginx vhost. This is not the settings of the default_server
# but settings which will be inherited by all the vhosts (unless overriden at the vhost level)
# You can override it if you want to use a custom _ vhost
nginx_default_vhost_name: _
nginx_vhosts: []

View File

@@ -84,7 +84,7 @@ http {
listen 443{% if nginx_default_vhost_name == '_' %} default_server{% endif %} ssl http2;
server_name {{ nginx_default_vhost_name }};
root /usr/share/nginx/html;
root {{ nginx_root }};
# Load location fragments in the default vhost
include /etc/nginx/ansible_location.d/*.conf;
@@ -99,6 +99,9 @@ http {
include /etc/nginx/ansible_conf.d/acme.inc;
location / {
{% if nginx_autoindex %}
autoindex on;
{% endif %}
}
location ~ \.ht {