commit eb30ad6a9daf481404dfdb710fd09218249219b6
Author: Adrian Reber <adrian(a)lisas.de>
Date: Mon Sep 7 14:19:40 2020 +0200
Added RewriteRule for release packages
Signed-off-by: Adrian Reber <adrian(a)lisas.de>
.../files/mirrorlist-server.common | 2 ++
.../mirrormanager/mirrorlist-server/tasks/main.yml | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/roles/mirrormanager/mirrorlist-server/files/mirrorlist-server.common
b/roles/mirrormanager/mirrorlist-server/files/mirrorlist-server.common
index a911574..fb136c6 100644
--- a/roles/mirrormanager/mirrorlist-server/files/mirrorlist-server.common
+++ b/roles/mirrormanager/mirrorlist-server/files/mirrorlist-server.common
@@ -10,6 +10,8 @@ RewriteRule ^/(free|nonfree)/(fedora|el)/updates/([^/]+)/([^/]+)/?$
http://mirro
RewriteRule ^/(free|nonfree)/(fedora|el)/(rawhide|development)/([^/]+)/?$
http://mirrors.rpmfusion.org/mirrorlist?repo=$1-$2-rawhide&arch=$4 [R=301,last]
RewriteRule ^/(free|nonfree)/(fedora|el)/([^/]+)/([^/]+)/?$
http://mirrors.rpmfusion.org/mirrorlist?repo=$1-$2-$3&arch=$4 [R=301,last]
+RewriteRule
^/(free|nonfree)/(fedora|el)/rpmfusion-(free|nonfree)-release-(\d{1,2}).noarch.rpm
https://mirrors.rpmfusion.org/mirrorlist?path=$1/$2/rpmfusion-$3-release-...
[P]
+
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} ^/statistics(.*)
RewriteRule ^/?(.*)
https://mirrors.rpmfusion.org/$1 [R,L]
diff --git a/roles/mirrormanager/mirrorlist-server/tasks/main.yml
b/roles/mirrormanager/mirrorlist-server/tasks/main.yml
index 744ed17..aa2f3e5 100644
--- a/roles/mirrormanager/mirrorlist-server/tasks/main.yml
+++ b/roles/mirrormanager/mirrorlist-server/tasks/main.yml
@@ -14,6 +14,8 @@
- mirrorlist-server
- geolite2-country
- certbot
+ - tmpwatch
+ - logrotate
tags:
- packages
- mirrorlist_server