Closed pavilo closed 1 year ago
This is not a bug. nikola auto
defaults to 127.0.0.1
. Some of it might be related to security (to avoid exposing the websocket to the world), but also, I recall livereload sometimes having issues with unusual IPs. I don’t think we should change the default; if 0.0.0.0
works fine for your needs, then you can just pass that argument.
Environment
Python Version: Python 3.9.5 (default, May 12 2021, 20:44:22)
Nikola Version: Nikola v8.1.3 from the official docker container
Operating System: alpine in docker
Description:
This command binds to
http://0.0.0.0:8000/
However if you replace
serve
withauto
it now binds tohttp://127.0.0.1:8000/
inside the container and the site cannot be accessed outside of docker.A quick fix is to append the
-a 0.0.0.0
option.