- Introduced a new logging system with configurable log levels and categories. - Added support for different log formats: plain text, JSON, and syslog. - Updated Dockerfile to use Alpine 3.19 and improved build process. - Enhanced server configuration to replace verbose logging with log modes (off, classic, debug, advanced). - Improved security measures in SSL context configuration. - Added health checks and resource limits in docker-compose.yml. - Refactored Makefile to include new logging source files. - Updated server configuration to set default log file path and SSL certificate paths. - Enhanced performance tracking and logging capabilities. - Added hex dump utility for debugging binary data.
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
# Carbon Web Server Configuration File
|
|
# Lines starting with # are comments
|
|
# Server running state
|
|
running = true
|
|
|
|
# ---Network configuration---
|
|
# Server listening port
|
|
port = 8080
|
|
# Enable HTTPS (requires valid certificates in certs/ directory)
|
|
use_https = false
|
|
# Enable HTTP/2 support (requires HTTPS)
|
|
enable_http2 = false
|
|
# Enable WebSocket support
|
|
enable_websocket = false
|
|
# Server name or IP address (used for logging and response headers)
|
|
|
|
server_name = Your_domain/IP
|
|
|
|
# ---Performance configuration---
|
|
# Maximum number of worker threads
|
|
max_threads = 4
|
|
max_connections = 1024
|
|
|
|
# ---Path configuration---
|
|
# Log file location
|
|
log_file = log/server.log
|
|
# Log mode: off, classic, debug, advanced
|
|
# - off: No logging
|
|
# - classic: Standard logging (info, warnings, errors)
|
|
# - debug: Detailed logging including debug messages
|
|
# - advanced: Full trace logging with performance metrics
|
|
log_mode = classic
|
|
# Path to 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 |