mirror of
https://github.com/lxsang/ant-http
synced 2024-11-18 01:08:21 +01:00
9c25e62c0a
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
- fix: scheduler causes segmentfault when exiting the server - Add support for IPv6 protocol |
||
---|---|---|
dist | ||
lib | ||
.drone.yml | ||
.gitignore | ||
.travis.yml | ||
ant-d | ||
ant-logo.png | ||
antd-config.ini | ||
antd.service | ||
build.json | ||
configure.ac | ||
http_server.c | ||
http_server.h | ||
httpd.c | ||
Jenkinsfile | ||
LICENSE | ||
Makefile.am | ||
plugin_manager.c | ||
plugin_manager.h | ||
README.md |
ant-http
A lightweight HTTP/HTTPs (1.1) web server written in C:
- Nonblocking event driven base server with configurable number of thread pool workers.
- Initial goal is for embedded Linux, but can be used as general purpose web server.
- Support:
- SSL via open SSL,
- builtin support Sqlite 3,
- web socket,
- reverse proxy
- It is also extensible via its extension mechanism that allows to extends the server capability.
- Page compression with gzip, deflate, cache control
Plugins:
- CGI interface for external scripting language (e.g. PHP): https://github.com/lxsang/antd-cgi-plugin
- Lua extension https://github.com/lxsang/antd-lua-plugin: using Lua as serverside script
- Web terminal https://github.com/lxsang/antd-wterm-plugin: plugin for using Unix terminal from the web via websocket
- Web VNC https://github.com/lxsang/antd-wvnc-plugin: Remote computer access using VNC protocol on the web (via websocket)
Build from source
build dep
- git
- make
- build-essential
server dependencies
- libssl-dev (expecting openssl v1.1.1d, only support TLSv1.2 and TLSv1.3)
- libsqlite3-dev
- zlib-dev
build
With all dependencies installed:
mkdir antd
cd antd
# Replace x.x.x by the version number
# build without plugin
wget -O- https://get.iohub.dev/antd | bash -s "x.x.x"
# or from the distribution tarball
tar xvzf antd-x.x.x.tar.gz
cd antd-x.x.x
./configure --prefix=/usr
make
sudo make install
Generate distribution
libtoolize
aclocal
autoconf
automake --add-missing
make distcheck