[Lada-commits] [PATCH] Add access with a role for Stammdatenpflege

Wald Commits scm-commit at wald.intevation.org
Wed Feb 24 18:24:29 CET 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1456334665 -3600
# Node ID 3ef492b5240b1a886d1e27fc14a9622a38ff46cb
# Parent  6a176e9ca89073e61e0bcf319ea6c793cff23628
Add access with a role for Stammdatenpflege.

diff -r 6a176e9ca890 -r 3ef492b5240b Dockerfile
--- a/Dockerfile	Wed Feb 24 17:56:47 2016 +0100
+++ b/Dockerfile	Wed Feb 24 18:24:25 2016 +0100
@@ -5,7 +5,7 @@
 # Run from the repository root-dir with e.g.
 # `docker run --name lada_client
 #             --link lada_wildfly:lada-server
-#             -p 8180-8182:80-82 -d koala/lada_client'
+#             -p 8180-8184:80-84 -d koala/lada_client'
 #
 # The linked container may be created from the Dockerfile in the lada-server
 # repository.
@@ -35,6 +35,6 @@
 RUN ln -sf $PWD/custom-httpd.conf $HTTPD_PREFIX/conf/httpd.conf
 RUN ln -sf $PWD/custom-vhosts.conf $HTTPD_PREFIX/conf/extra/httpd-vhosts.conf
 
-EXPOSE 80 81 82 83
+EXPOSE 80 81 82 83 84
 
 CMD ["httpd-foreground"]
diff -r 6a176e9ca890 -r 3ef492b5240b custom-vhosts.conf
--- a/custom-vhosts.conf	Wed Feb 24 17:56:47 2016 +0100
+++ b/custom-vhosts.conf	Wed Feb 24 18:24:25 2016 +0100
@@ -17,6 +17,7 @@
 Listen 81
 Listen 82
 Listen 83
+Listen 84
 
 <VirtualHost *:80>
     ServerAdmin webmaster at localhost
@@ -80,3 +81,18 @@
     ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
     ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
 </VirtualHost>
+
+<VirtualHost *:84>
+    ServerAdmin webmaster at localhost
+    ErrorLog logs/lada-error_log
+    CustomLog logs/lada-access_log common
+
+    # Fake Shibboleth-like authentication headers
+    RequestHeader set X-SHIB-user "testeins"
+    # Stammdatenpflege-Land
+    RequestHeader set X-SHIB-roles "cn=land_06_stamm"
+
+    # Add Proxy for Lada-server
+    ProxyPass "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
+    ProxyPassReverse "/lada-server/" "http://lada-server:8080/lada-server-2.2.0/"
+</VirtualHost>


More information about the Lada-commits mailing list