Skip to content

Commit

Permalink
Add Central version to client-config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-white committed Dec 16, 2024
1 parent 20878c7 commit abef156
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions files/nginx/client-config.json.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"centralVersion": "$CENTRAL_VERSION",
"oidcEnabled": $OIDC_ENABLED
}
2 changes: 2 additions & 0 deletions files/nginx/setup-odk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ if [[ $OIDC_ENABLED != 'true' ]] && [[ $OIDC_ENABLED != 'false' ]]; then
exit 1
fi

CENTRAL_VERSION=$(cat /usr/share/nginx/html/version.txt)
export CENTRAL_VERSION
envsubst < /usr/share/odk/nginx/client-config.json.template > /usr/share/nginx/html/client-config.json

# Generate self-signed keys for the incorrect (catch-all) HTTPS listener. This
Expand Down

0 comments on commit abef156

Please sign in to comment.