[library-web/oscp] Adjust path for the library-web clone + land permissions to access the wsgi file



commit 2d29f9018d1901166ec880d0862f352d7a3e1fc0
Author: Andrea Veri <averi redhat com>
Date:   Thu Feb 13 20:34:02 2020 +0100

    Adjust path for the library-web clone + land permissions to access the wsgi file

 httpd/Dockerfile                                  | 2 +-
 httpd/app_data/httpd-cfg/developer.gnome.org.conf | 4 ++++
 httpd/app_data/httpd-cfg/help.gnome.org.conf      | 4 ++++
 3 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/httpd/Dockerfile b/httpd/Dockerfile
index 3fc5dab..cf94f3a 100644
--- a/httpd/Dockerfile
+++ b/httpd/Dockerfile
@@ -4,7 +4,7 @@ USER root
 RUN yum install -y python-html5lib python-sqlite2 git python2-django python27-mod_wsgi && \
     yum -y clean all --enablerepo='*'
 
-RUN git clone https://gitlab.gnome.org/Infrastructure/library-web.git /opt/lgo
+RUN git clone https://gitlab.gnome.org/Infrastructure/library-web.git /opt/app-root/src
 
 ADD developer.lgorc /opt/app-root/src
 
diff --git a/httpd/app_data/httpd-cfg/developer.gnome.org.conf 
b/httpd/app_data/httpd-cfg/developer.gnome.org.conf
index d4a9981..0474c3b 100644
--- a/httpd/app_data/httpd-cfg/developer.gnome.org.conf
+++ b/httpd/app_data/httpd-cfg/developer.gnome.org.conf
@@ -55,3 +55,7 @@
 
     Require all granted
 </Directory>
+
+<Directory "/opt/app-root/src/library-web/web">
+  Require all granted
+</Directory>
diff --git a/httpd/app_data/httpd-cfg/help.gnome.org.conf b/httpd/app_data/httpd-cfg/help.gnome.org.conf
index e62a74f..2ac0c98 100644
--- a/httpd/app_data/httpd-cfg/help.gnome.org.conf
+++ b/httpd/app_data/httpd-cfg/help.gnome.org.conf
@@ -41,3 +41,7 @@
 
     Require all granted
 </Directory>
+
+<Directory "/opt/app-root/src/library-web/web">
+  Require all granted
+</Directory>


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