From 71623dbcddef33d8dee0cda3b33839c881677c71 Mon Sep 17 00:00:00 2001 From: Grische <2787581+grische@users.noreply.github.com> Date: Mon, 23 Dec 2024 21:22:56 +0100 Subject: [PATCH] firmware: make new firmware redirect public --- nginx/domains/firmware.ffmuc.net.conf | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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/ {