Skip to content

[Bug]: Can't connect via CloudFlare tunnel #4128

Description

@DavidTs93

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

  1. Run AudiobookShelf on Docker (no special settings) and publish the necessary port (80)
  2. Add it to Cloudflare's tunnel
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions