hermes

HTTP GET/HEAD-only web server for static content.
git clone git://git.francescosaccone.com/hermes
Log | Files | Refs | README | LICENSE

commit 5db7402d900f8f3158b6695d50f50ff1e6bdf8d4
parent 750b36188a1204d46fd7f05103275948bd02e6de
Author: Francesco Saccone <francesco@francescosaccone.com>
Date:   Tue,  1 Apr 2025 13:42:27 +0200

chore: add man page

Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>

Diffstat:
Ahermes.1 | 44++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+), 0 deletions(-)

diff --git a/hermes.1 b/hermes.1 @@ -0,0 +1,44 @@ +.Dd 2025-04-01 +.Dt HERMES 1 +.Os francescosaccone.com +.Sh NAME +.Nm hermes +.Nd HTTP GET/HEAD-only web server for static content +.Sh SYNOPSIS +.Nm +.Fl d Ar directory +.Op Fl p Ar port +.Op Fl i Ar file +.Op Fl u Ar user +.Op Fl g Ar group +.Sh DESCRIPTION +.Nm +is a minimalist GET/HEAD-only HTTP server for hosting static content. +.Sh OPTIONS +.Bl -tag -width Ds +.It Fl d Ar directory +Chroot into +.Ar directory +and serve statically from there. +.It Fl p Ar port +Listen on port +.Ar port +for incoming connections. +The default is 80. +.It Fl i Ar file +Use +.Ar file +as the directory index file. +The default is "index.html". +.It Fl u Ar user +Drop privileges by setting the user ID to the ID of +.Ar user +. +The default is "nobody". +.It Fl g Ar group +Drop privileges by setting the group ID to the ID of +.Ar group +. +The default is "nogroup". +.Sh AUTHORS +.An Francesco Saccone Aq Mt francesco@francescosaccone.com