Skip to content

Commit

Permalink
Merge pull request #181 from grische/make-redirect-firmware-public
Browse files Browse the repository at this point in the history
firmware: make new firmware redirect public
  • Loading branch information
DasSkelett authored Dec 28, 2024
2 parents fdfdc5b + 71623db commit 3845718
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions nginx/domains/firmware.ffmuc.net.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 "*";

Expand All @@ -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/ {
Expand Down

0 comments on commit 3845718

Please sign in to comment.