cce: select broker and root CA by ENVIRONMENT

ENVIRONMENT=test keeps CCE sites on test-no-real-data.broker.samply.de
with its root CA in cce/test.root.crt.pem; every other environment uses
broker.cce.dkfz.de and cce/root.crt.pem.
This commit is contained in:
Pierre Delpy
2026-10-13 15:39:40 +02:00
parent f13a1cb7d9
commit b7d110b2d8
3 changed files with 26 additions and 1 deletions
+5
View File
@@ -1,4 +1,9 @@
BROKER_ID=broker.cce.dkfz.de
ROOT_CRT_FILE=/srv/docker/bridgehead/cce/root.crt.pem
if [ "$ENVIRONMENT" == "test" ]; then
BROKER_ID=test-no-real-data.broker.samply.de
ROOT_CRT_FILE=/srv/docker/bridgehead/cce/test.root.crt.pem
fi
BROKER_URL=https://${BROKER_ID}
PROXY_ID=${SITE_ID}.${BROKER_ID}
FOCUS_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"