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

Switch Networking Traefik docs for network_mode: "host" to match Traefik's docs using extra_hosts: #993

Open
rpatterson opened this issue May 13, 2024 · 6 comments

Comments

@rpatterson
Copy link

The Jellyfin docs for Traefik describe a configuration for network_mode: "host" that is different from and more complicated than what the Traefik docs describe. Specifically, it only requires adding an extra_hosts: hostname and requires no additional configuration file such as /srv/traefik-provider.toml.

I developed my Traefik configuration following the Traefik docs and only recently discovered the Jellyfin docs for Traefik, so I'm using the extra_hosts: approach and it works fine for me. Perhaps the Jellyfin docs for Traefik should be switched to that approach?

@rpatterson
Copy link
Author

I'd be happy to submit a PR with changes to the Jellyfin Traefik docs if this change would be welcome. LMK.

@nielsvanvelzen
Copy link
Member

Pull requests are always welcome!

@rpatterson
Copy link
Author

rpatterson commented May 13, 2024

Pull requests are always welcome!

Of course, but would this change in particular be preferred to the current docs, @nielsvanvelzen? I don't want to put the time into writing it up if it's not preferred for some reason and thus DOA.

@nielsvanvelzen
Copy link
Member

Our documentation is mostly community maintained. I've never used Traefik myself so I can't say what is better.

@rpatterson
Copy link
Author

In the hopes of saving others some time, after the recent upgrade to 10.9, Jellyfin changed the way it discovers which IP addresses to bind to which means it stopped binding to 172.17.0.1, I'm guessing because the docker0 bridge is state DOWN. Unfortunately, the Traefik docs use that IP in it's example and it's not entirely clear that users should use the real IP of the bridge for the specific network the Traefik container is running on:

# docker compose exec traefik ip route show src
default via 172.18.0.1 dev eth0

@rpatterson
Copy link
Author

I've never used Traefik myself so I can't say what is better.

Right, so when someone else can say, LMK.

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

2 participants