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

@@ -7,9 +7,9 @@ running = true
# Server listening port
port = 8080
# Enable HTTPS (requires valid certificates in certs/ directory)
use_https = false
use_https = false
# Enable HTTP/2 support (requires HTTPS)
enable_http2 = false
enable_http2 = false
# Enable WebSocket support
enable_websocket = false
# Server name or IP address (used for logging and response headers)
@@ -21,12 +21,14 @@ server_name = Your_domain/IP
max_threads = 4
max_connections = 1024
# ---Path configuration---
# Log file location
log_file = log/server.log
# Enable verbose logging
verbose = true
# Path to www
www_path = www
www_path = www
# path to public ssl certification
ssl_cert_path = ssl/cert/cert.pem
# path to private ssl key
ssl_key_path = ssl/key/key.key