static web server index
Find a file
2026-02-16 21:01:19 +01:00
assets add robots.txt 2026-01-02 00:57:00 +01:00
extras simplify request init 2026-01-03 00:36:25 +01:00
src use built-in binary size formatter 2026-02-16 21:01:19 +01:00
.gitignore initial 2025-11-17 07:01:09 +01:00
build.zig add robots.txt 2026-01-02 00:57:00 +01:00
build.zig.zon add assets to zon 2026-01-30 19:20:13 +01:00
LICENSE add README and LICENSE 2025-11-18 12:19:35 +01:00
README.md mention fcgi and new options in README 2025-12-29 20:43:50 +01:00

zdir

static web server index written in Zig

how to use

The project ships multiple versions:

  • http
    • a standalone web server to server reqests
  • cgi
    • CGI binary
  • fcgi
    • FastCGI Service via a unix socket

Options:

  • -Droot=<path> choose root path (default ".")
  • -Dport=<num> select HTTP server port (default: 8888)
  • -Denable-lockdown=<bool> whether to enable lockdown mode (capsicum on FreeBSD, landlock on Linux, default: yes)
  • -Dforce-lockdown=<bool> if lockdown is required for the program to run (default: no)
  • -Dfcgi-socket-path=<path> path for the FastCGI socket

license

this project is licensed under the MIT License