You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is caused by the fact that when we parse the SB_* environment values based on their type as specified in the config.schema.json we don't handle the object type so it is run through the catch-all safe_echo code:
I don't believe that it is currently possible to set the
authConfig
via environment variable.Issue
docker build -t stac-browser
docker run -it -e SB_authConfig='{"foo": "bar"}' --name stac-browser stac-browser
docker exec stac-browser cat /usr/share/nginx/html/config.js
You should see an object where the
authConfig
property is a string rather than an object:Cause
This is caused by the fact that when we parse the
SB_*
environment values based on their type as specified in theconfig.schema.json
we don't handle theobject
type so it is run through the catch-allsafe_echo
code:stac-browser/config.schema.json
Lines 225 to 236 in 108947e
stac-browser/docker/docker-entrypoint.sh
Lines 58 to 92 in 108947e
This keeps it as a string:
stac-browser/docker/docker-entrypoint.sh
Lines 1 to 2 in 108947e
The text was updated successfully, but these errors were encountered: