[gimp-web/oscp] Add testing.gimp.org
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/oscp] Add testing.gimp.org
- Date: Wed, 18 Mar 2020 11:40:48 +0000 (UTC)
commit 0b45dd4a927fe3dea58fac886cd1763dcecafc4c
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Wed Mar 18 12:40:34 2020 +0100
Add testing.gimp.org
testing.gimp.org/Dockerfile | 19 ++++++++
.../app_data/httpd-cfg/testing.gimp.org.conf | 55 ++++++++++++++++++++++
2 files changed, 74 insertions(+)
---
diff --git a/testing.gimp.org/Dockerfile b/testing.gimp.org/Dockerfile
new file mode 100644
index 00000000..9e4ecc6e
--- /dev/null
+++ b/testing.gimp.org/Dockerfile
@@ -0,0 +1,19 @@
+FROM centos:7
+RUN yum install -y python-pip git && \
+ pip install pelican==3.6.2 Markdown==2.6.6 pygeoip==0.3.2 Pygments==2.2.0 typogrify==2.0.7 bs4
+
+RUN git clone --depth 1 --branch testing https://gitlab.gnome.org/Infrastructure/gimp-web && \
+ cd gimp-web && \
+ pelican content -o output -s pelicanconf.py
+
+FROM centos/httpd-24-centos7
+USER root
+
+COPY app_data /opt/app-root/src
+COPY --from=0 /gimp-web/output /opt/app-root/src/html
+RUN chown -R 1000580000:1000580000 /opt/app-root/src
+
+EXPOSE 8080
+
+USER 1000580000
+ENTRYPOINT ["/usr/bin/run-httpd"]
diff --git a/testing.gimp.org/app_data/httpd-cfg/testing.gimp.org.conf
b/testing.gimp.org/app_data/httpd-cfg/testing.gimp.org.conf
new file mode 100644
index 00000000..f41f31e9
--- /dev/null
+++ b/testing.gimp.org/app_data/httpd-cfg/testing.gimp.org.conf
@@ -0,0 +1,55 @@
+<VirtualHost *:8080>
+ ServerName gimp-testing.openshift.gnome.org
+ ServerAlias testing.gimp.org
+
+ ServerAdmin webmaster gimp org
+ DocumentRoot /opt/app-root/src/html
+
+ # Disable unsafe inline/eval, only load resources from same origin
+ # except also allow OpenHub. Also disables the execution of plugins.
+ Header always set \
+ Content-Security-Policy " \
+ default-src 'none'; \
+ img-src 'self'; \
+ style-src 'self'; \
+ script-src 'self' https://www.openhub.net; \
+ font-src 'self'; \
+ child-src 'self' https://www.openhub.net https://www.youtube.com
https://www.youtube-nocookie.co\
+m; \
+ object-src 'none'; \
+ media-src 'self' https://download.gimp.org https://www.mirrorservice.org; \
+ base-uri 'self'; \
+ form-action 'self'; \
+ frame-ancestors 'self'; \
+ "
+ Header always set \
+ Referrer-Policy: "same-origin, strict-origin-when-cross-origin"
+
+ RedirectPermanent /downloads/Linux.html /downloads/
+ RedirectPermanent /downloads/Mac.html /downloads/
+ RedirectPermanent /downloads/Windows.html /downloads/
+ RedirectPermanent /macintosh/ /downloads/
+ RedirectPermanent /windows/ /downloads/
+ RedirectPermanent /news/2017/02/27/an-interview-with-michael-natterer-gimp-maintainer/
/news/2017/03/01/an-interview-with-michael-natterer-gimp-maintainer/
+ RedirectPermanent /news/2018/03/26/gimp-2-10-rc1-released/ /news/2018/03/26/gimp-2-10-0-rc1-released/
+ RedirectPermanent /bugs/howtos/bugzilla.html /bugs/report.html
+ RedirectPermanent /news.rdf /feeds/atom.xml
+
+ AddType text/html .xhtml
+ AddType text/xml .rdf
+ AddType text/xml .rss
+ AddType text/plain .md5
+ AddType text/plain .sha1
+ AddType text/plain .sha256
+ AddType application/vnd.flatpak .flatpak
+
+ ErrorDocument 404 /404.html
+</VirtualHost>
+
+<Directory "/opt/app-root/src/html">
+ 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]