What happened?
Created a tunnel to my host with AudiobookShelf on it via Docker, added the port under the tunnel's "Public Hostname", but it fails to load (error 502 after a while).
I tried (ChatGPT suggested) to use network_mode: "host" in the compose file instead of the port publishing, and now it worked on port 80.
Why is it only working in network_mode: "host" mode?
What did you expect to happen?
To connect via the port, and not only when using the host's network (network_mode: "host").
Steps to reproduce the issue
- Run AudiobookShelf on Docker (no special settings) and publish the necessary port (80)
- Add it to Cloudflare's tunnel
- Won't work
Audiobookshelf version
2.19.5
How are you running audiobookshelf?
Docker
What OS is your Audiobookshelf server hosted from?
Linux
If the issue is being seen in the UI, what browsers are you seeing the problem on?
None
Logs
Additional Notes
No response
What happened?
Created a tunnel to my host with AudiobookShelf on it via Docker, added the port under the tunnel's "Public Hostname", but it fails to load (error 502 after a while).
I tried (ChatGPT suggested) to use
network_mode: "host"in the compose file instead of the port publishing, and now it worked on port 80.Why is it only working in
network_mode: "host"mode?What did you expect to happen?
To connect via the port, and not only when using the host's network (
network_mode: "host").Steps to reproduce the issue
Audiobookshelf version
2.19.5
How are you running audiobookshelf?
Docker
What OS is your Audiobookshelf server hosted from?
Linux
If the issue is being seen in the UI, what browsers are you seeing the problem on?
None
Logs
Additional Notes
No response