diff --git a/script/entrypoint.sh b/script/entrypoint.sh index 7f61f33..c7f5a2f 100644 --- a/script/entrypoint.sh +++ b/script/entrypoint.sh @@ -10,11 +10,11 @@ REF=$(date +'%m%d%Y%p') rm -f /etc/nginx/conf.d/openIMIS.confs rm -f /etc/nginx/conf.d/default.conf cp /conf/openimis.conf /etc/nginx/conf.d/openIMIS.conf -envsubst '${PUBLIC_URL},${REACT_APP_API_URL},${NEW_OPENIMIS_HOST},${ROOT_MOBILEAPI},${REDIRECT_TAIL},${DATA_UPLOAD_MAX_MEMORY_SIZE}' < /conf/openimis.conf > /etc/nginx/conf.d/openIMIS.conf +envsubst '${PUBLIC_URL},${REACT_APP_API_URL},${NEW_OPENIMIS_HOST},${ROOT_MOBILEAPI},${REDIRECT_TAIL},${DATA_UPLOAD_MAX_MEMORY_SIZE},${$OPENSEARCH_BASIC_TOKEN}' < /conf/openimis.conf > /etc/nginx/conf.d/openIMIS.conf ln -s -f /usr/share/nginx/html /usr/share/nginx/html/${PUBLIC_URL} echo "Hosting on https://""$NEW_OPENIMIS_HOST" echo "root uri $PUBLIC_URL" echo "root api $REACT_APP_API_URL" echo "root restapi $ROOT_MOBILEAPI" -exec "$@" \ No newline at end of file +exec "$@"