aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-01-18 23:53:28 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-01-18 23:53:28 -0500
commit87314ec101282bfe45c9b3c5b0a09cbd611d4ce8 (patch)
tree15bc66461d516c583e22738d7f11b00a38a18c6a
parentde76156391655f726b5655f727e06822398827ca (diff)
added public https port setting
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs2
-rw-r--r--MediaBrowser.Model/Configuration/ServerConfiguration.cs7
-rw-r--r--MediaBrowser.Server.Implementations/Connect/ConnectManager.cs5
-rw-r--r--MediaBrowser.Server.Implementations/EntryPoints/ExternalPortForwarding.cs1
-rw-r--r--MediaBrowser.Server.Implementations/Localization/Server/server.json10
5 files changed, 19 insertions, 6 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index 6d403c898..271c20f4e 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -821,7 +821,7 @@ namespace MediaBrowser.Api.Playback
{
get
{
- return true;
+ return false;
}
}
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
index 94bd30d0b..2ce039454 100644
--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
@@ -21,6 +21,12 @@ namespace MediaBrowser.Model.Configuration
public int PublicPort { get; set; }
/// <summary>
+ /// Gets or sets the public HTTPS port.
+ /// </summary>
+ /// <value>The public HTTPS port.</value>
+ public int PublicHttpsPort { get; set; }
+
+ /// <summary>
/// Gets or sets the HTTP server port number.
/// </summary>
/// <value>The HTTP server port number.</value>
@@ -204,6 +210,7 @@ namespace MediaBrowser.Model.Configuration
{
ImageSavingConvention = ImageSavingConvention.Compatible;
PublicPort = 8096;
+ PublicHttpsPort = 8920;
HttpServerPortNumber = 8096;
HttpsPortNumber = 8920;
EnableHttps = false;
diff --git a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
index d3a29f420..1cc3365e5 100644
--- a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
+++ b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
@@ -81,7 +81,10 @@ namespace MediaBrowser.Server.Implementations.Connect
ip = (_appHost.EnableHttps ? "https://" : "http://") + ip;
}
- return ip + ":" + _config.Configuration.PublicPort.ToString(CultureInfo.InvariantCulture);
+ ip += ":";
+ ip += _appHost.EnableHttps ? _config.Configuration.PublicHttpsPort.ToString(CultureInfo.InvariantCulture) : _config.Configuration.PublicPort.ToString(CultureInfo.InvariantCulture);
+
+ return ip;
}
return null;
diff --git a/MediaBrowser.Server.Implementations/EntryPoints/ExternalPortForwarding.cs b/MediaBrowser.Server.Implementations/EntryPoints/ExternalPortForwarding.cs
index 4371739b7..5c69db3e1 100644
--- a/MediaBrowser.Server.Implementations/EntryPoints/ExternalPortForwarding.cs
+++ b/MediaBrowser.Server.Implementations/EntryPoints/ExternalPortForwarding.cs
@@ -145,6 +145,7 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
_createdRules.Add(address);
CreatePortMap(device, _appHost.HttpPort, _config.Configuration.PublicPort);
+ CreatePortMap(device, _appHost.HttpsPort, _config.Configuration.PublicHttpsPort);
}
}
diff --git a/MediaBrowser.Server.Implementations/Localization/Server/server.json b/MediaBrowser.Server.Implementations/Localization/Server/server.json
index 683a5a639..0151c0f7d 100644
--- a/MediaBrowser.Server.Implementations/Localization/Server/server.json
+++ b/MediaBrowser.Server.Implementations/Localization/Server/server.json
@@ -515,13 +515,15 @@
"NewCollectionNameExample": "Example: Star Wars Collection",
"OptionSearchForInternetMetadata": "Search the internet for artwork and metadata",
"ButtonCreate": "Create",
- "LabelLocalHttpServerPortNumber": "Local port number:",
+ "LabelLocalHttpServerPortNumber": "Local http port number:",
"LabelLocalHttpServerPortNumberHelp": "The tcp port number that Media Browser's http server should bind to.",
- "LabelPublicPort": "Public port number:",
- "LabelPublicPortHelp": "The public port number that should be mapped to the local port.",
+ "LabelPublicHttpPort": "Public http port number:",
+ "LabelPublicHttpPortHelp": "The public port number that should be mapped to the local http port.",
+ "LabelPublicHttpsPort": "Public https port number:",
+ "LabelPublicHttpsPortHelp": "The public port number that should be mapped to the local https port.",
"LabelEnableHttps": "Enable https for remote connections",
"LabelEnableHttpsHelp": "If enabled, the server will report an https url as it's external address.",
- "LabelHttpsPort": "Local https port:",
+ "LabelHttpsPort": "Local https port number:",
"LabelHttpsPortHelp": "The tcp port number that Media Browser's https server should bind to.",
"LabelCertificatePath": "SSL Certificate path:",
"LabelCertificatePathHelp": "The path on the file system to the ssl certificate .pfx file.",