diff --git a/roles/website/updates/templates/site.j2 b/roles/website/updates/templates/site.j2 index 18c0c44..84687ac 100644 --- a/roles/website/updates/templates/site.j2 +++ b/roles/website/updates/templates/site.j2 @@ -1,3 +1,5 @@ +include /etc/nginx/include/node_hierarchy.conf; + server { listen 443 ssl; listen [::]:443 ssl; @@ -9,10 +11,20 @@ server { root /var/www/updates; + if ($ffhh-sued) { + rewrite ^/(beta|experimental|stable)/(.*)$ /ffhh-sued/$1/$2; + } + location / { include /etc/nginx/include/headers_hsts.conf; include /etc/nginx/include/listing.conf; } + + location = /config { + root /etc/nginx/include; + try_files /node_hierarchy.conf =404; + default_type text/plain; + } } # Kein HTTPS Redirect wg. Paketinstallation auf Routern @@ -24,6 +36,10 @@ server { root /var/www/updates; + if ($ffhh-sued) { + rewrite ^/(beta|experimental|stable)/(.*)$ /ffhh-sued/$1/$2; + } + location / { include /etc/nginx/include/listing.conf; } @@ -41,6 +57,10 @@ server { root /var/www/updates; + if ($ffhh-sued) { + rewrite ^/(beta|experimental|stable)/(.*)$ /ffhh-sued/$1/$2; + } + location / { include /etc/nginx/include/listing.conf; }