https://github.com/oneoo/alilua
epoll/kqueue+lua based web server
https://github.com/oneoo/alilua
Last synced: about 1 month ago
JSON representation
epoll/kqueue+lua based web server
- Host: GitHub
- URL: https://github.com/oneoo/alilua
- Owner: oneoo
- License: mit
- Created: 2013-05-06T02:56:12.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-10-20T08:52:59.000Z (about 8 years ago)
- Last Synced: 2025-05-14T22:42:22.920Z (8 months ago)
- Language: C
- Homepage: http://alilua.com
- Size: 408 KB
- Stars: 525
- Watchers: 69
- Forks: 97
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-lua - aLiLua - A epoll/kqueue based web server, inculded lua/coevent support (support Linux/MacOS/BSD platform). (Web Frameworks)
README
aLiLua
======
A epoll/kqueue based web server, inculded lua/coevent support (support Linux/MacOS/BSD platform)
- WebSockets supported
- HTTPS supported
Install
-------
### Requirements
- openssl headers
Ubuntu:
```bash
$ sudo apt-get install libssl-dev
```
Fedora:
```bash
$ sudo yum install openssl-devel
```
### Install aLiLua
```bash
$ git clone https://github.com/oneoo/alilua.git
$ cd alilua
$ sudo make install clean
```
Start
-----
```bash
$ sudo alilua --daemon --bind=8080
```
Options
-------
```
--bind=127.0.0.1:80 server bind. or --bind=80 for bind at 0.0.0.0:80
--daemon[=n] process mode mode(start n workers)
--thread=n number of Lua coroutines per worker
--ssl-bind ssl server bind.
--ssl-cert ssl Certificate file path
--ssl-key ssl PrivateKey file path
--ssl-ca ssl Client Certificate file path
--log=file path error log
--accesslog=... access log
--host-route Special route file path
--app Special app file path
--code-cache-ttl number of code cache time(sec) default 60 sec
--cache-size size of YAC shared memory cache (1m or 4096000k)
```
Default Config file: `/usr/local/alilua/host-route.lua`
Limits
======
```
Response header length: < 3KB
Response body length: unlimited
```
Docs
=====
http://alilua.com/docs.html
Mailing list
============
https://groups.google.com/forum/?hl=en#!forum/alilua