mirror of https://github.com/samply/bridgehead.git
chore!: update transfair config
This commit is contained in:
parent
6f3aba1eaa
commit
e5aebfe382
|
@ -5,8 +5,11 @@ services:
|
||||||
container_name: bridgehead-transfair
|
container_name: bridgehead-transfair
|
||||||
environment:
|
environment:
|
||||||
# NOTE: Those 3 variables need only to be passed if their set, otherwise transfair will complain about empty url values
|
# NOTE: Those 3 variables need only to be passed if their set, otherwise transfair will complain about empty url values
|
||||||
- INSTITUTE_TTP_URL
|
- TTP_URL
|
||||||
- INSTITUTE_TTP_API_KEY
|
- TTP_ML_API_KEY
|
||||||
|
- TTP_GW_SOURCE
|
||||||
|
- TTP_TYPE
|
||||||
|
- TTP_AUTH
|
||||||
- PROJECT_ID_SYSTEM
|
- PROJECT_ID_SYSTEM
|
||||||
- FHIR_REQUEST_URL=${FHIR_REQUEST_URL}
|
- FHIR_REQUEST_URL=${FHIR_REQUEST_URL}
|
||||||
- FHIR_INPUT_URL=${FHIR_INPUT_URL}
|
- FHIR_INPUT_URL=${FHIR_INPUT_URL}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
function transfairSetup() {
|
function transfairSetup() {
|
||||||
if [[ -n "$INSTITUTE_TTP_URL" || -n "$EXCHANGE_ID_SYSTEM" ]]; then
|
if [[ -n "$TTP_URL" || -n "$EXCHANGE_ID_SYSTEM" ]]; then
|
||||||
echo "Starting transfair."
|
echo "Starting transfair."
|
||||||
OVERRIDE+=" -f ./modules/transfair-compose.yml"
|
OVERRIDE+=" -f ./modules/transfair-compose.yml"
|
||||||
if [ -n "$FHIR_INPUT_URL" ]; then
|
if [ -n "$FHIR_INPUT_URL" ]; then
|
||||||
|
@ -18,5 +18,14 @@ function transfairSetup() {
|
||||||
FHIR_REQUEST_URL="http://transfair-requests-blaze:8080"
|
FHIR_REQUEST_URL="http://transfair-requests-blaze:8080"
|
||||||
OVERRIDE+=" --profile transfair-request-blaze"
|
OVERRIDE+=" --profile transfair-request-blaze"
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$TTP_GW_SOURCE" ]; then
|
||||||
|
log INFO "TransFAIR configured with greifswald as ttp"
|
||||||
|
TTP_TYPE="greifswald"
|
||||||
|
elif [ -n "$TTP_ML_API_KEY" ]; then
|
||||||
|
log INFO "TransFAIR configured with mainzelliste as ttp"
|
||||||
|
TTP_TYPE="mainzelliste"
|
||||||
|
else
|
||||||
|
log INFO "TransFAIR configured without ttp"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue