freeze break request - fedora mobile proxy

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

 



I'd like to set up a proxy from fp.o/mobile ->
fedora-infra.github.io/mobile.

After talking with nirik on irc, we decided that for now this is the way
to go, and later on we can move things around if we decide to.

diff --git a/manifests/services/proxy.pp b/manifests/services/proxy.pp
index 2d615b0..316b6de 100644
--- a/manifests/services/proxy.pp
+++ b/manifests/services/proxy.pp
@@ -432,6 +432,12 @@ class proxy {
       proxyurl => "http://localhost:10018";,
     }

+    fedora-mobile::proxy { "fedoraproject.org/mobile":
+      website => "fedoraproject.org",
+      path => "/mobile",
+      proxyurl => "http://fedora-infra.github.io/mobile";,
+    }
+
     httpd::mime-type { "site icon":
         website => "fedoraproject.org",
         mimetype => "image/vnd.microsoft.icon",
diff --git a/modules/fedora-mobile/README b/modules/fedora-mobile/README
new file mode 100644
index 0000000..770f746
--- /dev/null
+++ b/modules/fedora-mobile/README
@@ -0,0 +1,5 @@
+# Fedora Mobile landing site
+
+This proxies fp.o/mobile to github pages:
+
+http://fedora-infra.github.io/mobile/
diff --git a/modules/fedora-mobile/manifests/init.pp
b/modules/fedora-mobile/manifests/init.pp
new file mode 100644
index 0000000..6626b9b
--- /dev/null
+++ b/modules/fedora-mobile/manifests/init.pp
@@ -0,0 +1,16 @@
+define fedora-mobile::proxy(
+    $website,
+    $path,
+    $proxyurl
+) {
+    include httpd::base
+
+    file { "/etc/httpd/conf.d/$website/fedora-mobile.conf":
+        owner   => "root",
+        group   => "root",
+        mode    => 0644,
+        content => template("fedora-mobile/fedora-mobile-proxy.conf.erb"),
+        notify  => Service["httpd"],
+        require => Httpd::Website[$website],
+    }
+}
diff --git
a/modules/fedora-mobile/templates/fedora-mobile-proxy.conf.erb
b/modules/fedora-mobile/templates/fedora-mobile-proxy.conf.erb
new file mode 100644
index 0000000..c6fc6db
--- /dev/null
+++ b/modules/fedora-mobile/templates/fedora-mobile-proxy.conf.erb
@@ -0,0 +1,4 @@
+RewriteEngine On
+
+ProxyPass <%= path %> <%= proxyurl %>
+ProxyPassReverse <%= path %> <%= proxyurl %>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux