brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: JELLYFIN_ plus a key with double underscores sets a Jellyfin config option from the environment

Config
~/tips/tip-jellyfin-env-double-underscore-config-key

JELLYFIN_HttpListenerHost__DefaultRedirectPath=/web/

Sets a main Jellyfin configuration option through an environment variable with double underscores.

Most Jellyfin settings live in the dashboard, but a few server options belong to the main configuration, and the environment can set those.

The configuration docs give a general pattern: JELLYFIN_<Key> sets a main configuration option, following the ASP.NET convention for environment variables. A colon in the option name becomes a double underscore. The docs name this key as their example, and I added a value only to show the shape:

JELLYFIN_HttpListenerHost__DefaultRedirectPath=/web/

That sets HttpListenerHost:DefaultRedirectPath. In a container you pass it as an environment variable in the template or in your compose file.

environment:
  - JELLYFIN_HttpListenerHost__DefaultRedirectPath=/web/

The directories have their own, simpler variables, such as JELLYFIN_DATA_DIR and JELLYFIN_LOG_DIR, and the matching command line options come first when both are given.

Caveat: the docs only show the one example key, and I would not guess other keys. The value /web/ is my own placeholder, so look up what a real option expects before you set it. Restart the container after the change and check that the server really behaves differently, because a mistyped key may not produce any message that I know of. If you are unsure, test with a throwaway container first and keep your real one untouched until the result is what you wanted.

Further reading: Configuration (Jellyfin documentation)

Going deeper: Guide: advanced tmux, a config that grows with you, formats, layouts and more

More Config tips include extraconfig.txt root = true npm config list –smart-case define( 'WP_HOME', 'https://example.com' ); All Config tips (9) All topics

Link