summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compose-prod.yml1
-rwxr-xr-xidp/shib-entrypoint.sh5
2 files changed, 6 insertions, 0 deletions
diff --git a/compose-prod.yml b/compose-prod.yml
index 7396245..cd78b73 100644
--- a/compose-prod.yml
+++ b/compose-prod.yml
@@ -7,6 +7,7 @@ services:
- IDP_HOSTNAME=idp.nordu.net
- IDP_SCOPE=nordu.net
- IDP_DEBUG=true
+ - IDP_ENCRYPTION_OPTIONAL=true
env_file: ./data/production/env
volumes:
- ./data/production/idp-data:/opt/data
diff --git a/idp/shib-entrypoint.sh b/idp/shib-entrypoint.sh
index 33d534f..4ee5489 100755
--- a/idp/shib-entrypoint.sh
+++ b/idp/shib-entrypoint.sh
@@ -21,6 +21,11 @@ if [ -e /opt/data ]; then
fi
fi
+# Make encrytping optional (some SPs don't have encryption)
+if [ $IDP_ENCRYPTION_OPTIONAL ]; then
+ sed -i -e '/idp.encryption.optional=/ s/^#//' -e '/idp.encryption.optional=/ s/false/true/'
+fi
+
# FTICKS
if [ -n "$FTICKS_FEDERATION" ]; then
sed -i -e '/idp.fticks.federation=/ s/^#//' \