Skip to content

Commit

Permalink
Merge pull request #302 from bento-platform/more-bento-public-brandin…
Browse files Browse the repository at this point in the history
…g-options

add Bento Public flags for showing/hiding header links
  • Loading branch information
davidlougheed authored Jan 21, 2025
2 parents 1e18d87 + ca96660 commit 79db013
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 4 deletions.
20 changes: 19 additions & 1 deletion docs/migrating_to_18.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,25 @@ TODO
above location, or copy `branding.png` to `branding.lightbg.png`


## 3. Enabling MinIO
## 3. If desired, disable Bento Public sign in / portal links

Version 18 includes two new Bento Public environment variables for customizing an instance:

* `BENTO_PUBLIC_SHOW_PORTAL_LINK`: Whether to show a link to the private data portal in the header
* `BENTO_PUBLIC_SHOW_SIGN_IN`: Whether to show a "Sign In" button in the header

Both of these are set to `true` by default. If desired, they can be toggled to `false` by setting them in `local.env`,
for example:

```bash
# ...
BENTO_PUBLIC_SHOW_PORTAL_LINK='false'
BENTO_PUBLIC_SHOW_SIGN_IN='false'
# ...
```


## 4. Enabling MinIO

To enable the deployment of a MinIO server for S3 storage, refer to the documentation on
[configuring MinIO for Bento](/docs/minio.md).
Expand Down
6 changes: 5 additions & 1 deletion etc/bento_deploy.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ BENTO_GOHAN_ENABLED='true'
BENTO_MONITORING_ENABLED='false'
BENTO_MINIO_ENABLED='false'

# - Switch to enable French translation in Bento Public
# - Display flags for Bento portals
# - Switch to enable French translation in Bento Public
BENTO_PUBLIC_TRANSLATED='true'
# - Switches to enable various links in the Bento Public header (these default to being on)
BENTO_PUBLIC_SHOW_PORTAL_LINK='true'
BENTO_PUBLIC_SHOW_SIGN_IN='true'

# Feature switches end ------------------------------------------------

Expand Down
6 changes: 5 additions & 1 deletion etc/bento_dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ BENTO_GOHAN_ENABLED='true'
BENTO_MONITORING_ENABLED='false'
BENTO_MINIO_ENABLED='false'

# - Switch to enable French translation in Bento Public
# - Display flags for Bento portals
# - Switch to enable French translation in Bento Public
BENTO_PUBLIC_TRANSLATED='true'
# - Switches to enable various links in the Bento Public header (these default to being on)
BENTO_PUBLIC_SHOW_PORTAL_LINK='true'
BENTO_PUBLIC_SHOW_SIGN_IN='true'

# Feature switches end ------------------------------------------------

Expand Down
6 changes: 5 additions & 1 deletion etc/default_config.env
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ BENTO_GOHAN_ENABLED='true'
BENTO_MONITORING_ENABLED='false'
BENTO_MINIO_ENABLED='false'

# - Switch to enable French translation in Bento Public
# - Display flags for Bento portals
# - Switch to enable French translation in Bento Public
BENTO_PUBLIC_TRANSLATED='true'
# - Switches to enable various links in the Bento Public header (these default to being on)
BENTO_PUBLIC_SHOW_PORTAL_LINK='true'
BENTO_PUBLIC_SHOW_SIGN_IN='true'

# Feature switches end ------------------------------------------------

Expand Down
2 changes: 2 additions & 0 deletions lib/public/docker-compose.public.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ services:
- BENTO_PUBLIC_CLIENT_NAME
- BENTO_PUBLIC_PORTAL_URL
- BENTO_PUBLIC_TRANSLATED
- BENTO_PUBLIC_SHOW_PORTAL_LINK
- BENTO_PUBLIC_SHOW_SIGN_IN
- BENTO_BEACON_UI_ENABLED
- BENTO_BEACON_NETWORK_ENABLED
- BEACON_URL=${BENTOV2_PUBLIC_URL}/api/beacon
Expand Down

0 comments on commit 79db013

Please sign in to comment.