[wiki-web] Add es.gnome.org



commit 370e7e03f3697f063ea634633059b9ca42e35eae
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Thu Jan 30 10:41:27 2020 +0100

    Add es.gnome.org

 app_data/httpd-cfg/02_es.gnome.org.conf | 34 +++++++++++++++++++++++++++++++++
 app_data/httpd-pre-init/initialize.sh   |  1 +
 2 files changed, 35 insertions(+)
---
diff --git a/app_data/httpd-cfg/02_es.gnome.org.conf b/app_data/httpd-cfg/02_es.gnome.org.conf
new file mode 100644
index 0000000..5d6d30f
--- /dev/null
+++ b/app_data/httpd-cfg/02_es.gnome.org.conf
@@ -0,0 +1,34 @@
+<VirtualHost *:8443>
+  ServerName es.gnome.org
+
+  DocumentRoot /srv/http/data/es.gnome.org/root 
+  DirectoryIndex index.html
+
+  SSLEngine on
+  SSLCertificateFile /var/serving-cert/tls.crt 
+  SSLCertificateKeyFile /var/serving-cert/tls.key
+
+  # Standard moinmoin/mod_python integration rules
+  RewriteRule ^/moin_static1910/(.*)$ /srv/http/moin/MoinMoin/web/static/htdocs/$1 [last]
+  RewriteRule ^/robots.txt$ /srv/http/moin/MoinMoin/web/static/htdocs/robots.txt [last]
+  RewriteRule ^/favicon.ico$ /srv/http/data/pango.gnome.org/root/favicon.ico [last]
+
+  WSGIDaemonProcess moin_pango user=apache group=apache processes=8 threads=10 maximum-requests=300 
umask=0007
+  WSGIProcessGroup moin_pango
+
+  # mod_wsgi
+  WSGIScriptAlias /   /srv/http/wsgi/es.gnome.org.wsgi
+
+</VirtualHost>
+
+<LocationMatch "^/.well-known/acme-challenge">
+  RedirectMatch ^(.*) https://letsencrypt.gnome.org$1
+</LocationMatch>
+
+<Directory "/srv/http/wsgi">
+  Require all granted
+</Directory>
+
+<Directory "/srv/http/moin/MoinMoin/web/static/htdocs">
+  Require all granted
+</Directory>
diff --git a/app_data/httpd-pre-init/initialize.sh b/app_data/httpd-pre-init/initialize.sh
index 03c04e2..915cc1c 100755
--- a/app_data/httpd-pre-init/initialize.sh
+++ b/app_data/httpd-pre-init/initialize.sh
@@ -2,3 +2,4 @@
 
 cp /tmp/moinmoin-configmap/wiki.gnome.org.wsgi /srv/http/wsgi/wiki.gnome.org.wsgi
 cp /tmp/moinmoin-configmap/pango.gnome.org.wsgi /srv/http/wsgi/pango.gnome.org.wsgi
+cp /tmp/moinmoin-configmap/es.gnome.org.wsgi /srv/http/wsgi/es.gnome.org.wsgi


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