Files
SPT-Server-Build/Libraries/Core/Models/Spt/Config/HttpConfig.cs
T
Chomp 5a5e18f568 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>
2025-02-20 12:27:55 +00:00

79 lines
1.4 KiB
C#

using System.Text.Json.Serialization;
namespace Core.Models.Spt.Config;
public record HttpConfig : BaseConfig
{
[JsonPropertyName("kind")]
public string Kind
{
get;
set;
} = "spt-http";
/// <summary>
/// Address used by webserver
/// </summary>
[JsonPropertyName("ip")]
public string Ip
{
get;
set;
}
[JsonPropertyName("port")]
public int Port
{
get;
set;
}
/// <summary>
/// Address used by game client to connect to
/// </summary>
[JsonPropertyName("backendIp")]
public string BackendIp
{
get;
set;
}
[JsonPropertyName("backendPort")]
public int BackendPort
{
get;
set;
}
[JsonPropertyName("webSocketPingDelayMs")]
public int WebSocketPingDelayMs
{
get;
set;
}
[JsonPropertyName("logRequests")]
public bool LogRequests
{
get;
set;
}
/// <summary>
/// e.g. "SPT_Data/Server/images/traders/579dc571d53a0658a154fbec.png": "SPT_Data/Server/images/traders/NewTraderImage.png"
/// </summary>
[JsonPropertyName("serverImagePathOverride")]
public Dictionary<string, string> ServerImagePathOverride
{
get;
set;
}
[JsonPropertyName("certificatePassword")]
public string? CertificatePassword
{
get;
set;
}
}