[redirects-web] Land a redirect for ftp.gnome.org (https://gitlab.gnome.org/Infrastructure/Infrastructure/-/issues/4



commit cbc40be1f68fceb79bd3f8a14a2ac3b126a64c39
Author: Andrea Veri <averi redhat com>
Date:   Tue Nov 3 14:47:20 2020 +0100

    Land a redirect for ftp.gnome.org (https://gitlab.gnome.org/Infrastructure/Infrastructure/-/issues/477)

 app_data/httpd-cfg/ftp.gnome.org.conf |  6 ++++++
 resources/ftp.gnome.org.yaml          | 17 +++++++++++++++++
 2 files changed, 23 insertions(+)
---
diff --git a/app_data/httpd-cfg/ftp.gnome.org.conf b/app_data/httpd-cfg/ftp.gnome.org.conf
new file mode 100644
index 0000000..bd35ebb
--- /dev/null
+++ b/app_data/httpd-cfg/ftp.gnome.org.conf
@@ -0,0 +1,6 @@
+<VirtualHost *:8080>
+    ServerName ftp.gnome.org
+
+    RewriteEngine On
+    RedirectMatch 301 "^/pub/GNOME/(.*)$" "https://download.gnome.org/$1";
+</VirtualHost>
diff --git a/resources/ftp.gnome.org.yaml b/resources/ftp.gnome.org.yaml
new file mode 100644
index 0000000..6f10f0e
--- /dev/null
+++ b/resources/ftp.gnome.org.yaml
@@ -0,0 +1,17 @@
+apiVersion: route.openshift.io/v1
+kind: Route
+metadata:
+  name: ftp.gnome.org
+  namespace: redirects-web
+spec:
+  host: ftp.gnome.org
+  port:
+    targetPort: 8080-tcp
+  tls:
+    insecureEdgeTerminationPolicy: Redirect
+    termination: edge
+  to:
+    kind: Service
+    name: redirects-web
+    weight: 100
+  wildcardPolicy: None


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]