Skip to content

Commit

Permalink
Merge pull request #117 from openimis/feature/add-OS-token
Browse files Browse the repository at this point in the history
add opensearch token
  • Loading branch information
delcroip authored Jan 31, 2024
2 parents d7e9e66 + acca882 commit 6940a3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
exec "$@"

0 comments on commit 6940a3f

Please sign in to comment.