mirror of
https://codeberg.org/gigirassy/teletraan.git
synced 2026-08-30 23:27:39 +00:00
1.6 KiB
1.6 KiB
teletraan
a static binary-based rootless dockerized web server that is so small, it is effectively braindead, while remaining featureful for most usecases.
the server runs rootless, read-only, and distroless, making it lighter and more secure than nginx. it serves everything in the /data folder
inspired by busybox httpd.
in less than 150 loc, it currently supports:
- gzipped files
- serving single page webapps like cinny nginx-style via the
-sflag - serving formats other than html as the index with the
-iflag.
it has extremely minimal dependencies, so minimal that you can tack on a crapload of compilation options and use nightly rust without harming binary functionality.
it is compiled with panic=immediate-abort.
example usage
in a compose file, you can use teletraan to run your static site stack:
services:
site-with-index.txt:
image: codeberg.org/gigirassy/teletraan:latest
read_only: true
volumes:
- "./site:/data"
command: "-i" # site made of txt files
ports:
- "127.0.0.1:9900:3000"
spa-matrix-client:
image: codeberg.org/gigirassy/teletraan:latest
read_only: true
volumes:
- "./cinny:/data"
command: "-s" # single page app
ports:
- "127.0.0.1:9901:3000"
basic-html-site:
image: codeberg.org/gigirassy/teletraan:latest
read_only: true
volumes:
- "./basic-html-site:/data"
# no command: flags needed!
ports:
- "127.0.0.1:9904:3000"
and then use external caddy or nginx to reverse proxy the host ports.
license
ISC