mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-16 08:54:47 +01:00
disable http port
This commit is contained in:
@@ -235,7 +235,7 @@ namespace nksrv
|
|||||||
var cert = new X509Certificate2(new X509Certificate(AppDomain.CurrentDomain.BaseDirectory + @"site.pfx"));
|
var cert = new X509Certificate2(new X509Certificate(AppDomain.CurrentDomain.BaseDirectory + @"site.pfx"));
|
||||||
|
|
||||||
var server = new WebServer(o => o
|
var server = new WebServer(o => o
|
||||||
.WithUrlPrefixes("https://*:443", "http://*:80")
|
.WithUrlPrefixes("https://*:443")
|
||||||
.WithMode(HttpListenerMode.EmbedIO).WithAutoLoadCertificate().WithCertificate(cert))
|
.WithMode(HttpListenerMode.EmbedIO).WithAutoLoadCertificate().WithCertificate(cert))
|
||||||
// First, we will configure our web server by adding Modules.
|
// First, we will configure our web server by adding Modules.
|
||||||
.WithLocalSessionManager()
|
.WithLocalSessionManager()
|
||||||
|
|||||||
Reference in New Issue
Block a user