There are two goals for this project.
- Development with http frameworks , which need http server.
- Packaging of projects using http frameworks, for local use on desktop.
- Obviously,
lua
. Tested with 5.3 and 5.2 flavors, not withluajit
(but should work). luasocket
. You can install it withluarocks
package manager, or directly from your distribution (or from the sources). Package for Archlinux:lua-socket
.LFS
. It's LuaFileSystem, used by the file manager. Install it the same way you did forluasocket
. Package for Archlinux:lua-filesystem
.
It is planned to provide an all-in-one distribution for packaging projects, but for the moment, you have to install yourself tho deps.
Launch lunetoile.lua
and it will serve you well (even so, read the alternatives)
There are some tools availables, for diagnostics or commons use.
You call them via the URL.
name | action | localhost only |
---|---|---|
/list |
prints dir of path arguments |
no (but chrooted) |
/quit |
end the server | yes |
/whoami |
returns client's header | no |
- serving files to clients.
- File manager (upload and download files).
- parallelized clients.
- cookies. 🍪
- config file.
- https.with localhost, seriously ?!
- TODO list
This project is for private use, or at most, not farthest than your LAN.
Use these projects instead, if you plan to serve to the whole internet (you know ☣️ ☢️ …).
name | link |
---|---|
luahttp | https://github.com/daurnimator/lua-http |
openresty | http://openresty.org/en/ |
lunetoile is a pseudo-word made with two french words : lune and étoile.
You can translate it as moonweb (moon ➡️ lua/lune , web ➡️ toile).
But in french, it means also moonstar, with the shared 'e'
(lun(e) ➡️ moon , (e)toile ➡️ star).