Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server.hostname needs to be set to (e.g.) 0.0.0.0, not localhost #160

Open
sebbASF opened this issue May 19, 2024 · 1 comment
Open

server.hostname needs to be set to (e.g.) 0.0.0.0, not localhost #160

sebbASF opened this issue May 19, 2024 · 1 comment

Comments

@sebbASF
Copy link

sebbASF commented May 19, 2024

When running under Docker, the server hostname needs to be defined:

This command will also expose port 8820 from the container, however you will also need to set the https://jbake.org/docs/latest/#default_hostname_for_server_mode[default hostname]

However, the default setting of server.hostname=localhost does not work. The server drops the connection immediately.
I have found that using server.hostname=0.0.0.0 works.

@sebbASF
Copy link
Author

sebbASF commented May 20, 2024

This is noted here:
https://github.com/jbake-org/jbake/blob/5921ee529e324d71e00a96a12968021ea12dd103/README.asciidoc?plain=1#L91
but is not in the Download doc which is more likely to be read by first-time users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant