From 0b452fd18e4be5ab9fcf243d254f7605e2cbd81d Mon Sep 17 00:00:00 2001 From: Elisei Roca Date: Apr 19 2024 17:39:18 +0000 Subject: Redirect from mirrors.o.o to download.o.o for /report/mirrors --- diff --git a/pillar/role/web_static.sls b/pillar/role/web_static.sls index 534fb36..6485293 100644 --- a/pillar/role/web_static.sls +++ b/pillar/role/web_static.sls @@ -53,6 +53,9 @@ nginx: {%- if website == 'community' %} - autoindex: 'on' {%- endif %} + {%- if website == 'mirrors' %} + - rewrite: ^/report/mirrors/(.*)$ https://download.opensuse.org/report/mirrors/$1 redirect + {%- endif %} - error_page: 405 = $uri - error_page: 405 =200 $uri - error_page: 500 502 503 504 /50x.html