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