diff options
Diffstat (limited to 'apache-sp')
-rw-r--r-- | apache-sp/apache-conf/sp.conf | 2 | ||||
-rw-r--r-- | apache-sp/entrypoint.sh | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/apache-sp/apache-conf/sp.conf b/apache-sp/apache-conf/sp.conf index 5e32cbc..6678f8e 100644 --- a/apache-sp/apache-conf/sp.conf +++ b/apache-sp/apache-conf/sp.conf @@ -37,6 +37,8 @@ SSLHonorCipherOrder on CustomLog /proc/self/fd/1 combined ServerSignature off + DirectoryIndex index.html index.shtml + <Location /secure> AuthType shibboleth diff --git a/apache-sp/entrypoint.sh b/apache-sp/entrypoint.sh index 156b5ac..34589e3 100644 --- a/apache-sp/entrypoint.sh +++ b/apache-sp/entrypoint.sh @@ -29,7 +29,13 @@ if [ ! -f "$KEYDIR/private/${SP_HOSTNAME}.key" -o ! -f "$KEYDIR/certs/${SP_HOSTN fi # Fetch metadata -curl http://shibboleth-docker:8080/idp/shibboleth -o /var/www/metadata.xml +if [ -z "$SKIP_METADATA" ]; then + until curl http://shibboleth-docker:8080/idp/shibboleth -o /var/www/metadata.xml + do + sleep 5 + done +fi + chown -R www-data:www-data /var/www/ chmod -R a+r /var/www/ |