Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions docs/migrating_to_27.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,18 @@ BENTO_PUBLIC_AUTH_SECRET='<your-generated-secret>'

Keep this value stable for each environment; changing it invalidates existing Bento Public sessions.

## 4. Update Bento services
## 4. (Optional) Show Bento Public developer settings

A new feature switch, `BENTO_PUBLIC_SHOW_DEV_SETTINGS` (default `false`), shows developer settings in Bento Public.
This allows easy switching between the default and PCGL Bento Public modes via the UI. To enable it, add the
following to `local.env`:

```bash
# local.env
BENTO_PUBLIC_SHOW_DEV_SETTINGS='true'
```

## 5. Update Bento services

Update and restart Bento services using the following commands:

Expand All @@ -59,7 +70,7 @@ Update and restart Bento services using the following commands:
docker system prune -a
```

## 4. (If using the internal Keycloak) Re-run `init-auth`
## 6. (If using the internal Keycloak) Re-run `init-auth`

Keycloak requires email, first name and last name by default, so users missing them are sent to an
"Update Account Information" page on every login. `init-auth` now makes these fields optional in the Bento
Expand Down
2 changes: 2 additions & 0 deletions etc/bento_deploy.env
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ BENTO_PUBLIC_SHOW_SIGN_IN='true'
BENTO_PUBLIC_FORCE_CATALOGUE='false'
# - PCGL Research Portal mode
BENTO_PUBLIC_PCGL_MODE='false'
# - Switch to show developer settings in Bento Public
BENTO_PUBLIC_SHOW_DEV_SETTINGS='false'

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

Expand Down
2 changes: 2 additions & 0 deletions etc/bento_dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ BENTO_PUBLIC_SHOW_SIGN_IN='true'
BENTO_PUBLIC_FORCE_CATALOGUE='false'
# - PCGL Research Portal mode
BENTO_PUBLIC_PCGL_MODE='false'
# - Switch to show developer settings in Bento Public
BENTO_PUBLIC_SHOW_DEV_SETTINGS='false'

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

Expand Down
2 changes: 2 additions & 0 deletions etc/default_config.env
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ BENTO_PUBLIC_SHOW_SIGN_IN='true'
BENTO_PUBLIC_FORCE_CATALOGUE='false'
# - PCGL Research Portal mode
BENTO_PUBLIC_PCGL_MODE='false'
# - Switch to show developer settings in Bento Public
BENTO_PUBLIC_SHOW_DEV_SETTINGS='false'

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

Expand Down
1 change: 1 addition & 0 deletions lib/public/docker-compose.public.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ services:
- BENTO_PUBLIC_SHOW_SIGN_IN
- BENTO_PUBLIC_FORCE_CATALOGUE
- BENTO_PUBLIC_PCGL_MODE
- BENTO_PUBLIC_SHOW_DEV_SETTINGS
- BENTO_PUBLIC_CATALOGUE_HEADER_BACKGROUND
- BENTO_PUBLIC_CATALOGUE_HEADER_TEXT_COLOR
- BENTO_BEACON_UI_ENABLED
Expand Down
Loading