aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/StartupOptions.cs
diff options
context:
space:
mode:
authorNeil Burrows <neil.burrows@nvable.com>2020-05-02 17:56:09 +0100
committerNeil Burrows <neil.burrows@nvable.com>2020-05-02 17:56:09 +0100
commitb737301c709ba4c2575b2a38ddbba6de96477413 (patch)
tree812ebc6fee70b77161a6f62707da740dc4d78f23 /Jellyfin.Server/StartupOptions.cs
parent62e251663fce8216cea529f85382299ac2f39fbc (diff)
Auto discover published URL override
Diffstat (limited to 'Jellyfin.Server/StartupOptions.cs')
-rw-r--r--Jellyfin.Server/StartupOptions.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Jellyfin.Server/StartupOptions.cs b/Jellyfin.Server/StartupOptions.cs
index 6e15d058f..135ba9d7f 100644
--- a/Jellyfin.Server/StartupOptions.cs
+++ b/Jellyfin.Server/StartupOptions.cs
@@ -1,6 +1,8 @@
using System.Collections.Generic;
using CommandLine;
using Emby.Server.Implementations;
+using Emby.Server.Implementations.EntryPoints;
+using Emby.Server.Implementations.Udp;
using Emby.Server.Implementations.Updates;
using MediaBrowser.Controller.Extensions;
@@ -80,6 +82,10 @@ namespace Jellyfin.Server
[Option("plugin-manifest-url", Required = false, HelpText = "A custom URL for the plugin repository JSON manifest")]
public string? PluginManifestUrl { get; set; }
+ /// <inheritdoc />
+ [Option("auto-discover-publish-url", Required = false, HelpText = "Jellyfin Server URL to publish via auto discover process")]
+ public string? AutoDiscoverPublishUrl { get; set; }
+
/// <summary>
/// Gets the command line options as a dictionary that can be used in the .NET configuration system.
/// </summary>
@@ -98,6 +104,11 @@ namespace Jellyfin.Server
config.Add(ConfigurationExtensions.HostWebClientKey, bool.FalseString);
}
+ if (AutoDiscoverPublishUrl != null)
+ {
+ config.Add(UdpServer.AddressOverrideConfigKey, AutoDiscoverPublishUrl);
+ }
+
return config;
}
}