Add HTTPS support (#101)
* Initial work on adding https support * Updated logging * More logging * Added support for a certificate password Replaced method used for getting path to cert * Reduce duplication of logic in program.cs * Cleanup of `HttpServer` * More https stuff * https * Fixed remote IP stuff * Fixed non-local request logging * Updated assets * Replaced `singleplayer/bossconvert` to `singleplayer/bosstypes` * Updated map loot * Asset update * Stop storing a bots inventory and other values to save memory --------- Co-authored-by: Chomp <dev@dev.sp-tarkov.com> Co-authored-by: clodan <clodan@clodan.com>
This commit is contained in:
@@ -42,7 +42,7 @@ public class HttpServerHelper(ConfigServer configServer)
|
||||
*/
|
||||
public string GetBackendUrl()
|
||||
{
|
||||
return $"http://{BuildUrl()}";
|
||||
return $"https://{BuildUrl()}";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -50,7 +50,7 @@ public class HttpServerHelper(ConfigServer configServer)
|
||||
*/
|
||||
public string GetWebsocketUrl()
|
||||
{
|
||||
return $"ws://{BuildUrl()}";
|
||||
return $"wss://{BuildUrl()}";
|
||||
}
|
||||
|
||||
public void SendTextJson(HttpResponse resp, object output)
|
||||
|
||||
Reference in New Issue
Block a user