Use HTTPS, support for HTTP missing

This commit is contained in:
badaix 2024-05-07 22:50:27 +02:00
parent f7bd5e733f
commit a796bb2032
14 changed files with 121 additions and 54 deletions

View file

@ -38,6 +38,12 @@ struct ServerSettings
std::string data_dir{""};
};
struct Ssl
{
std::string certificate{""};
std::string private_key{""};
};
struct Http
{
bool enabled{true};
@ -79,6 +85,7 @@ struct ServerSettings
};
Server server;
Ssl ssl;
Http http;
Tcp tcp;
Stream stream;