mirror of https://github.com/samply/bridgehead.git
Merge branch 'directory_sync' of https://github.com/samply/bridgehead into directory_sync
This commit is contained in:
commit
e124e34d1e
|
@ -0,0 +1,8 @@
|
||||||
|
services:
|
||||||
|
directory_sync_service:
|
||||||
|
image: "samply/directory_sync_service"
|
||||||
|
environment:
|
||||||
|
DS_DIRECTORY_URL: ${DS_DIRECTORY_URL}
|
||||||
|
DS_DIRECTORY_USER_NAME: ${DS_DIRECTORY_USER_NAME}
|
||||||
|
DS_DIRECTORY_PASS_CODE: ${DS_DIRECTORY_PASS_CODE}
|
||||||
|
DS_TIMER_CRON: ${DS_TIMER_CRON}
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function dirSetup() {
|
||||||
|
if [ -n "$DS_DIRECTORY_USER_NAME" ]; then
|
||||||
|
log INFO "Directory sync setup detected -- will start directory sync service."
|
||||||
|
OVERRIDE+=" -f ./$PROJECT/directory-sync-compose.yml"
|
||||||
|
fi
|
||||||
|
}
|
|
@ -5,3 +5,7 @@ SPOT_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | he
|
||||||
SPOT_BEAM_SECRET_LONG="ApiKey spot.${PROXY_ID} ${SPOT_BEAM_SECRET_SHORT}"
|
SPOT_BEAM_SECRET_LONG="ApiKey spot.${PROXY_ID} ${SPOT_BEAM_SECRET_SHORT}"
|
||||||
SUPPORT_EMAIL=bridgehead@helpdesk.bbmri-eric.eu
|
SUPPORT_EMAIL=bridgehead@helpdesk.bbmri-eric.eu
|
||||||
PRIVATEKEYFILENAME=/etc/bridgehead/pki/${SITE_ID}.priv.pem
|
PRIVATEKEYFILENAME=/etc/bridgehead/pki/${SITE_ID}.priv.pem
|
||||||
|
|
||||||
|
# This will load directory-sync setup.
|
||||||
|
source $PROJECT/directory-sync.sh
|
||||||
|
dirSetup
|
||||||
|
|
Loading…
Reference in New Issue