Implement HTTP/2 and WebSocket support; remove legacy JavaScript and CSS files
- Added HTTP/2 support in src/http2.c and src/http2.h, including session management, frame handling, and response sending. - Introduced WebSocket functionality in src/websocket.c and src/websocket.h, covering handshake, frame parsing, and message sending. - Created a WebSocket test page (www/websocket-test.html) for client-side interaction. - Removed outdated JavaScript (www/script.js) and CSS (www/style.css) files.
This commit is contained in:
12
server.conf
12
server.conf
@@ -2,10 +2,10 @@
|
||||
# Lines starting with # are comments
|
||||
|
||||
# Server listening port
|
||||
port = 8080
|
||||
port = 443
|
||||
|
||||
# Enable HTTPS (requires valid certificates in certs/ directory)
|
||||
use_https = false
|
||||
use_https = true
|
||||
|
||||
# Log file location
|
||||
log_file = log/server.log
|
||||
@@ -17,7 +17,13 @@ max_threads = 4
|
||||
running = true
|
||||
|
||||
# Server name or IP address (used for logging and response headers)
|
||||
server_name = Your_domain/IP
|
||||
server_name = 10.0.0.206
|
||||
|
||||
# Enable verbose logging
|
||||
verbose = true
|
||||
|
||||
# Enable HTTP/2 support (requires HTTPS)
|
||||
enable_http2 = true
|
||||
|
||||
# Enable WebSocket support
|
||||
enable_websocket = false
|
||||
|
||||
Reference in New Issue
Block a user