Role service-nginx-firmware: strip ' (legacy)' from domain_name

This commit is contained in:
Julian Labus 2019-05-21 16:57:39 +02:00
parent fed89c5910
commit e16b92563d
No known key found for this signature in database
GPG Key ID: 8AF209F2C6B3572A
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ server {
include /etc/nginx/snippets/letsencrypt-acme-challenge.conf;
root /var/www/html/firmware/{{ mesh.domain_name.lower() }};
root /var/www/html/firmware/{{ mesh.domain_name.lower().rsplit(' ')[0] }};
location / {
autoindex on;
autoindex_exact_size off;
@ -79,7 +79,7 @@ server {
include /etc/nginx/snippets/letsencrypt-acme-challenge.conf;
root /var/www/html/firmware/{{ mesh.domain_name.lower() }};
root /var/www/html/firmware/{{ mesh.domain_name.lower().rsplit(' ')[0] }};
location / {
autoindex on;
autoindex_exact_size off;