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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user