Skip to content

Commit

Permalink
fix(web): add missing UNSAFE_PLUGIN_URLS and BRAND environment va…
Browse files Browse the repository at this point in the history
…riable (#1297)

Signed-off-by: KeisukeYamashita <[email protected]>
  • Loading branch information
KeisukeYamashita authored Dec 11, 2024
1 parent daa169c commit 8b1dad6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ ENV REEARTH_WEB_API=null
ENV REEARTH_WEB_AUTH0_AUDIENCE=null
ENV REEARTH_WEB_AUTH0_CLIENT_ID=null
ENV REEARTH_WEB_AUTH0_DOMAIN=null
ENV REEARTH_WEB_BRAND=null
ENV REEARTH_WEB_CESIUM_ION_ACCESS_TOKEN=null
ENV REEARTH_WEB_CLOUD_API=null
ENV REEARTH_WEB_CURRENT_TOS=null
Expand All @@ -62,6 +63,7 @@ ENV REEARTH_WEB_PLUGINS=null
ENV REEARTH_WEB_POLICY=null
ENV REEARTH_WEB_PUBLISHED=null
ENV REEARTH_WEB_TITLE=
ENV REEARTH_WEB_UNSAFE_PLUGIN_URLS=[]

COPY --from=builder --chown=nginx:nginx /app/dist /usr/share/nginx/html
COPY --chown=nginx:nginx docker/nginx.conf.template /etc/nginx/templates/nginx.conf.template
Expand Down
4 changes: 3 additions & 1 deletion web/docker/reearth_config.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"auth0Audience": ${REEARTH_WEB_AUTH0_AUDIENCE},
"auth0ClientId": ${REEARTH_WEB_AUTH0_CLIENT_ID},
"auth0Domain": ${REEARTH_WEB_AUTH0_DOMAIN},
"brand": ${REEARTH_WEB_BRAND},
"cesiumIonAccessToken": ${REEARTH_WEB_CESIUM_ION_ACCESS_TOKEN},
"cloudApi": ${REEARTH_WEB_CLOUD_API},
"currentTos": ${REEARTH_WEB_CURRENT_TOS},
Expand All @@ -16,5 +17,6 @@
"passwordPolicy": ${REEARTH_WEB_PASSWORD_POLICY},
"plugins": ${REEARTH_WEB_PLUGINS},
"policy": ${REEARTH_WEB_POLICY},
"published": ${REEARTH_WEB_PUBLISHED}
"published": ${REEARTH_WEB_PUBLISHED},
"unsafePluginUrls": ${REEARTH_WEB_UNSAFE_PLUGIN_URLS}
}

0 comments on commit 8b1dad6

Please sign in to comment.