Enhance server ssl configuration

- Added SSL certificate and key paths to ServerConfig structure.
- Updated init_config function to initialize new SSL paths.
- Formated code for better readability.
This commit is contained in:
2025-10-05 17:35:00 +00:00
parent 46b653efe0
commit 72df6a73fc
13 changed files with 1420 additions and 1000 deletions

View File

@@ -3,24 +3,26 @@
#include <stdbool.h>
typedef struct {
typedef struct
{
int port;
bool use_https;
char log_file[256];
int max_threads;
bool running;
bool automatic_startup;
char server_name[256];
char server_name[256];
int verbose;
bool enable_http2;
bool enable_websocket;
char www_path[256];
int max_connections;
char ssl_cert_path[256];
char ssl_key_path[256];
} ServerConfig;
int load_config(const char *filename, ServerConfig *config);
void init_config(ServerConfig *config);
void log_event(const char *message);
#endif