[gimp-web/oscp] Add download.gimp.org
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/oscp] Add download.gimp.org
- Date: Thu, 19 Mar 2020 13:55:08 +0000 (UTC)
commit 137d4f28b2ad5a76b7b2c605b635b2f7b0b02849
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Thu Mar 19 14:54:51 2020 +0100
Add download.gimp.org
download.gimp.org/app_data/download.gimp.org.map | 2 ++
.../app_data/httpd-cfg/download.gimp.org.conf | 41 ++++++++++++++++++++++
2 files changed, 43 insertions(+)
---
diff --git a/download.gimp.org/app_data/download.gimp.org.map
b/download.gimp.org/app_data/download.gimp.org.map
new file mode 100644
index 00000000..114c8fe2
--- /dev/null
+++ b/download.gimp.org/app_data/download.gimp.org.map
@@ -0,0 +1,2 @@
+mirrors
ftp.acc.umu.se/pub/gimp/gimp/|www.mirrorservice.org/sites/ftp.gimp.org/pub/gimp/|download.gimp.org/pub/gimp/
+video
download.gimp.org/pub/gimp/|www.mirrorservice.org/sites/ftp.gimp.org/pub/gimp/|pirbot.com/mirrors/gimp/gimp/
diff --git a/download.gimp.org/app_data/httpd-cfg/download.gimp.org.conf
b/download.gimp.org/app_data/httpd-cfg/download.gimp.org.conf
new file mode 100644
index 00000000..738ce070
--- /dev/null
+++ b/download.gimp.org/app_data/httpd-cfg/download.gimp.org.conf
@@ -0,0 +1,41 @@
+<VirtualHost *:8080>
+ ServerName ftp.gimp.org
+ RedirectPermanent / https://download.gimp.org/
+</VirtualHost>
+
+<VirtualHost *:8080>
+ ServerName download.gimp.org
+ ServerAlias gimp-download.openshift.gnome.org
+
+ ServerAdmin webmaster gimp org
+ DocumentRoot /ftp
+ AddType application/x-apple-diskimage .dmg
+
+ RewriteEngine On
+ RewriteMap servers rnd:/opt/app-root/src/download.gimp.org.map
+
+ # skip everything is if is not a ^mirror* REQUEST_URI
+ RewriteCond %{REQUEST_URI} !^/mirror
+ RewriteRule .? - [S=8]
+
+ # random mirror selection
+ RewriteCond %{REQUEST_URI} !^/mirror/
+ RewriteRule .? - [S=3]
+
+ RewriteCond %{REQUEST_URI} ^/mirror/pub/gimp/(.*\.(exe|gz|bz2|dmg|flatpak))$ [NC]
+ RewriteRule ^/mirror/pub/gimp/(.*\.(exe|gz|bz2|dmg|flatpak))$
https://${servers:mirrors|download.gimp.org/pub/gimp/}$1 [R=307,L]
+
+ RewriteCond %{REQUEST_URI} ^/mirror/pub/gimp/video/(.*\.(avi|mp4|webm))$ [NC]
+ RewriteRule ^/mirror/pub/gimp/video/(.*\.(avi|mp4|webm))$
https://${servers:video|download.gimp.org/pub/gimp/}video/$1 [R=307,L]
+
+ RewriteCond %{REQUEST_URI} ^/mirror/pub/gimp/(.*)$ [NC]
+ RewriteRule ^/mirror/pub/gimp/(.*) /pub/gimp/$1 [L]
+</VirtualHost>
+
+<Directory "/ftp">
+ Require all granted
+</Directory>
+
+<LocationMatch "^/.well-known/acme-challenge">
+ RedirectMatch ^(.*) https://letsencrypt.gnome.org$1
+</LocationMatch>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]