From e16b92563d0b9a674e65df6e96d34fc55214328f Mon Sep 17 00:00:00 2001 From: Julian Labus Date: Tue, 21 May 2019 16:57:39 +0200 Subject: [PATCH] Role service-nginx-firmware: strip ' (legacy)' from domain_name --- roles/service-nginx-firmware/templates/firmware_vhost.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/service-nginx-firmware/templates/firmware_vhost.conf.j2 b/roles/service-nginx-firmware/templates/firmware_vhost.conf.j2 index a7e87e4..6ff2086 100644 --- a/roles/service-nginx-firmware/templates/firmware_vhost.conf.j2 +++ b/roles/service-nginx-firmware/templates/firmware_vhost.conf.j2 @@ -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;