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:
Chomp
2025-02-20 12:27:55 +00:00
committed by GitHub
parent 6dc59a4be7
commit 5a5e18f568
62 changed files with 35395 additions and 35405 deletions
+2 -2
View File
@@ -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)