diff --git a/nginx/domains/firmware.ffmuc.net.conf b/nginx/domains/firmware.ffmuc.net.conf index 817fe7c..5b2c5eb 100644 --- a/nginx/domains/firmware.ffmuc.net.conf +++ b/nginx/domains/firmware.ffmuc.net.conf @@ -68,7 +68,7 @@ server { } # temporary location to test the new firmware redirect feature - location ~ ^/(stable|testing|experimental)-debug/ { + location ~ ^/(stable|testing|experimental)/ { # for accessing it e.g. via ffmuc.net/firmware add_header Access-Control-Allow-Origin "*"; @@ -89,13 +89,7 @@ server { break; } - rewrite ^/(stable|testing|experimental)-debug/(.*) /$targetDirectory/$1/$2 redirect; - } - - - location ~ ^/(stable|testing|experimental)/ { - # for accessing it e.g. via ffmuc.net/firmware - add_header Access-Control-Allow-Origin "*"; + rewrite ^/(stable|testing|experimental)/(.*) /$targetDirectory/$1/$2 redirect; } location ^~ /.well-known/acme-challenge/ {