Mercurial > lada > lada-client
changeset 1041:3ef492b5240b
Add access with a role for Stammdatenpflege.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 24 Feb 2016 18:24:25 +0100 |
parents | 6a176e9ca890 |
children | 39b162749778 |
files | Dockerfile custom-vhosts.conf |
diffstat | 2 files changed, 18 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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"]
--- 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@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@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>