aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2015-01-17 13:17:20 -0500
committerLuke <luke.pulverenti@gmail.com>2015-01-17 13:17:20 -0500
commitbb02d68cebb2379623dda5e7803135d80f15b27f (patch)
treeb0c370ce705ab77b476909a0c7515b6873ca131d /MediaBrowser.Controller
parent7a136349eea53097a4fb9e52de81a32bf2a4e086 (diff)
parent2300d56f688c2515def000fbd2330ad9e0116d33 (diff)
Merge pull request #969 from jabbera/ssl2
Ssl in mediabrowser against new listener.
Diffstat (limited to 'MediaBrowser.Controller')
-rw-r--r--MediaBrowser.Controller/IServerApplicationHost.cs22
-rw-r--r--MediaBrowser.Controller/Net/IHttpServer.cs4
-rw-r--r--MediaBrowser.Controller/Net/IServerManager.cs4
3 files changed, 28 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/IServerApplicationHost.cs b/MediaBrowser.Controller/IServerApplicationHost.cs
index 76eb9fceb..6bee5e58a 100644
--- a/MediaBrowser.Controller/IServerApplicationHost.cs
+++ b/MediaBrowser.Controller/IServerApplicationHost.cs
@@ -37,6 +37,28 @@ namespace MediaBrowser.Controller
int HttpServerPort { get; }
/// <summary>
+ /// Gets the HTTPS server port.
+ /// </summary>
+ /// <value>The HTTPS server port.</value>
+ int HttpsServerPort { get; }
+
+ /// <summary>
+ /// Gets the value indiciating if an https port should be hosted.
+ /// </summary>
+ /// <value>
+ /// The value indiciating if an https port should be hosted.
+ /// </value>
+ bool UseHttps { get; }
+
+ /// <summary>
+ /// Gets the value pointing to the file system where the ssl certiifcate is located.
+ /// </summary>
+ /// <value>
+ /// The value pointing to the file system where the ssl certiifcate is located.
+ /// </value>
+ string CertificatePath { get; }
+
+ /// <summary>
/// Gets a value indicating whether this instance has update available.
/// </summary>
/// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
diff --git a/MediaBrowser.Controller/Net/IHttpServer.cs b/MediaBrowser.Controller/Net/IHttpServer.cs
index 5b179d479..d56bee009 100644
--- a/MediaBrowser.Controller/Net/IHttpServer.cs
+++ b/MediaBrowser.Controller/Net/IHttpServer.cs
@@ -19,7 +19,9 @@ namespace MediaBrowser.Controller.Net
/// Starts the specified server name.
/// </summary>
/// <param name="urlPrefixes">The URL prefixes.</param>
- void StartServer(IEnumerable<string> urlPrefixes);
+ /// <param name="certificatePath">If an https prefix is specified,
+ /// the ssl certificate localtion on the file system.</param>
+ void StartServer(IEnumerable<string> urlPrefixes, string certificatePath);
/// <summary>
/// Gets the local end points.
diff --git a/MediaBrowser.Controller/Net/IServerManager.cs b/MediaBrowser.Controller/Net/IServerManager.cs
index dff086347..d90a0f8ed 100644
--- a/MediaBrowser.Controller/Net/IServerManager.cs
+++ b/MediaBrowser.Controller/Net/IServerManager.cs
@@ -15,7 +15,9 @@ namespace MediaBrowser.Controller.Net
/// Starts this instance.
/// </summary>
/// <param name="urlPrefixes">The URL prefixes.</param>
- void Start(IEnumerable<string> urlPrefixes);
+ /// <param name="certificatePath">If an https prefix is specified,
+ /// the ssl certificate localtion on the file system.</param>
+ void Start(IEnumerable<string> urlPrefixes, string certificatePath);
/// <summary>
/// Sends a message to all clients currently connected via a web socket