mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #405] Docker webserver binds to 127.0.0.1 by default sometimes #269
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#269
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DeStilleGast on GitHub (Jul 30, 2020).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/405
Describe the bug
build in webserver does not work for me from the docker image:
direct connection with ip: ERR_CONNECTION_REFUSED)
with via cloudflare and ssl I get a 502 bad gateway
Steps to reproduce
pull image
setup enviorment variables
setup mount for /data
publishing port 8098 on random port for now and placed it behind a reverse proxy (caddy 2)
command is set to
initafter first run I changed to command to
serverwhile it was running a ran
archivebox manage changesuperuserand restarted the containerScreenshots or log output
No error in the logs:
Software versions
@pirate commented on GitHub (Jul 30, 2020):
ooh can you share your caddy config? I'd love to add that to the docs.
I think the issue is here
Starting development server at http://127.0.0.1:8000/I'm not sure why it's starting on 127.0.0.1 by default, but that needs to be
0.0.0.0inside docker.You can fix it by running:
Where did you see this?
Chrome version: command not found in docker imageWhen no args are passed, it should correctly default to 0.0.0.0:8000 inside docker.

But if you want to, you can also pass the arg to force it.

@DeStilleGast commented on GitHub (Jul 31, 2020):
forcing the ip seems to work, I'm now able to access the server 🥳
the command not found was when I tried to follow the instructions in the bug report template:

but using your
archivebox versioncommand works and it told me I gotv84.0.4147.105caddy2 itself is a magic box, my current config for archivebox and seems to work fine:
I'm using portainer as interface and that might have screwed over the settings (?), but other then that it works