[PR #16131] Allow setting http/https port via environment variable and cli flag #14541

Open
opened 2026-02-07 07:31:29 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/16131
Author: @stavros-k
Created: 1/28/2026
Status: 🔄 Open

Base: masterHead: envport


📝 Commits (2)

  • 2863027 Allow setting http/https port via environment variable and cli flag
  • d38ebcd better validation

📊 Changes

3 files changed (+105 additions, -4 deletions)

View changed files

📝 Emby.Server.Implementations/ApplicationHost.cs (+73 -4)
📝 Jellyfin.Server/StartupOptions.cs (+22 -0)
📝 MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs (+10 -0)

📄 Description

Allows setting http/https port via environment variable and cli flag.
Makes it easy to adjust basic network settings, so you can always get back in the webui.
ie someone uses docker with hostnetwork but another service uses the port.

Changes

Issues


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/16131 **Author:** [@stavros-k](https://github.com/stavros-k) **Created:** 1/28/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `envport` --- ### 📝 Commits (2) - [`2863027`](https://github.com/jellyfin/jellyfin/commit/2863027b41f8ed263f77c9607ff438fdd2cc1778) Allow setting http/https port via environment variable and cli flag - [`d38ebcd`](https://github.com/jellyfin/jellyfin/commit/d38ebcd3d0b910c92401cf3fca8f6055f7f8dbb8) better validation ### 📊 Changes **3 files changed** (+105 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Server.Implementations/ApplicationHost.cs` (+73 -4) 📝 `Jellyfin.Server/StartupOptions.cs` (+22 -0) 📝 `MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs` (+10 -0) </details> ### 📄 Description <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> Allows setting http/https port via environment variable and cli flag. Makes it easy to adjust basic network settings, so you can always get back in the webui. ie someone uses docker with hostnetwork but another service uses the port. **Changes** <!-- Describe your changes here in 1-5 sentences. --> **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:31:29 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#14541