This an educational project. Http2 and higher is not supported.
This is epoll-based (kqueue-based for OSX) tcp-server that works asynchroniously.
$ docker build -t web_server
$ docker run -p 80:80 web_server
Web_server supports two types of configuration files plain text and yaml format. It is possible to set count of used CPU's, lua script file and root of static files. Examples. Plain text config:
cpu_limit 4 # maximum CPU count to use
document_root /var/www/html
script hello.lua
YAML foramt config:
cpu_limit: 4
document_root: /var/www/html
script: hello.lua
- lua scripts support
- yaml-based configuration
- static content transfering