Containers simple install instructions prevent Volto frontend access from remote hosts

Open
#1,358 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Domain
documentation

Research direction

Update docs/install/containers/index.md, focusing on the Volto frontend start command using RAZZLE_API_PATH. Check the suggested hostname guidance against the linked forum background, and consider the documentation complete when remote-host browsers can reach the backend API using the container host's fully qualified hostname.

Written by the indexing model from the issue text.

Description

Plone Documentation versions affected
  • 5.x
  • 6.x
Description

In the current version of https://github.com/plone/documentation/blob/6-dev/docs/install/containers/index.md the command for starting the Volto frontend results in a frontend that malfunctions mysteriously for visits by browsers not running on the same host as the containers.

Specifically, RAZZLE_API_PATH=http://localhost:8080/Plone causes Volto code running in the browser to do API calls to the Plone backend running on localhost:8080, which is incorrect. The correct value would include the fully qualified domain name of the container host, which in many cases can be expressed as RAZZLE_API_PATH=http://$HOSTNAME:8080/Plone.

To provide for cases where the hostname on the container host is not properly configured with the fully qualified domain name, it would be helpful to include a bit of explanation suggesting checking that echo $HOSTNAME yields the fully qualified domain name, and if not then substitute for $HOSTNAME in the frontend start command.

For background on this issue, see my forum posting describing the problem and the specific and related measures that solved the problem: https://community.plone.org/t/need-help-solving-weird-plone-6-volto-frontend-problem/15829/7

Dominant language
Makefile
Stars
106
Forks
190
Avg merge
3d 2h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plone/documentation

All issues in plone/documentation

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.