-
Notifications
You must be signed in to change notification settings - Fork 220
Simplify Traefik v2 setup #405
base: master
Are you sure you want to change the base?
Simplify Traefik v2 setup #405
Conversation
Since we can't use the built in management from traefik in host mode, move most of the configuration to the toml file for simplicity and ease of management.
Thanks @masterkoppa I’ll suggest adding this good contribution instead of replacing an otherwise working/common/good configuration. A paragraph that says “if you wish to not use labels in your configuration or if you want to use Traefik v2 without the Docker provider (ie: a non-Docker Jellyfin installation), you can replace the labels of the jellyfin service with the following code in the TOML file” and then having the code block... that I think makes more sense. It’s a great idea to add this to the documentation. I don’t think it’s better to make this the default configuration nor better to remove the Docker provider configuration though. |
I had debated that approach at first, but I didn't like the potential for duplication when I started it. But I didn't think of making it a potential addendum like you suggested, I'll update the PR with something like that. |
I agree with the add-rather-than-replace idea, otherwise good. CC @masterkoppa |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Are we doing the replace based on the approval? I don't think the new configuration is any more ideal, though adding it to the documentation as an alternate implementation is fine. Replacing a working implementation using Docker Labels for a TOML configuration for the sake of it just doesn't make sense. Especially since that one Traefik bug will be fixed. |
then let's fix it or close it |
@masterkoppa we have several comments in here requesting this method be added rather than replace the main configuration so could you make that change before this gets merged? |
While troubleshooting an issue with my personal Traefik v2 setup, I referenced the docs to see if I was missing anything new (Thank you @michaelkrieger for putting these together!). However, I found the label setup here unnecessary and overly complex. Especially if you already have a Traefik v2 setup for other things.
Since we can't use the built in management from Traefik in host mode, I moved most of the configuration of the Jellyfin configuration to the
toml
file, instead of using labels. As a bonus, this should in theory allow folks to use a non-Docker Jellyfin installation with Traefik v2.NOTE: Since this has a lot of placeholders and I used
yml
instead oftoml
on my own setup, I might have missed some quotes or messed something up so a second set of eyes would be appreciated.