Skip to content

Commit

Permalink
Update nginx/domains/firmware.ffmuc.net.conf
Browse files Browse the repository at this point in the history
Co-authored-by: DasSkelett <[email protected]>
  • Loading branch information
T0biii and DasSkelett authored Oct 30, 2024
1 parent 9650b23 commit 818b5f1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions nginx/domains/firmware.ffmuc.net.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,19 @@ server {
location ~ ^/(stable|testing|experimental)/ {
# for accessing it e.g. via ffmuc.net/firmware
add_header Access-Control-Allow-Origin "*";
if($autoupdater) {
if ($firmwareVersion < "2024.4.2") {
return 302 /v2024.4.2_v2022.5.7;
}

if ($autoupdater = "0") {
break;
}

set $latest_v2022_5 v2022.5.8;
set $latest_v2024_6 v2024.6.1;

if ($targetDirectory = "keep") {
break;
}

rewrite ^/(stable|testing|experimental)/(.*) /$targetDirectory/$2 redirect;
}

location ^~ /.well-known/acme-challenge/ {
Expand Down

0 comments on commit 818b5f1

Please sign in to comment.