fix readme, template_fail.html ; update general info and url in template
All checks were successful
Compile to Binary / build-linux (push) Successful in 1m4s
Compile to Binary / build-linux-musl (push) Successful in 1m32s
Compile to Binary / build-windows (push) Successful in 1m45s

This commit is contained in:
2026-03-23 07:16:05 +01:00
parent a025ca2ec4
commit fe48b74edc
2 changed files with 11 additions and 4 deletions

View File

@@ -1,12 +1,18 @@
# http-rs
Simple webserver, designed to be minimal and just work.
We now use clap for parsing the cli args, so dont try the old way!
```
./http-rs PORT HTMLFILE
./http-rs 8080 ./dir/
./http-rs --port 8080 --root ./data/to/serve
```
## Arguments which can be used:
- `--port` : a port where the webserver opens
- `--root` : the directory where the webserver serves files from
- `--threads` : Number of threads to use (default : 2)
## Docker
This can be run within a docker container. And tbh its very simple!
@@ -23,7 +29,8 @@ COPY app/ /app/ # copy your HTML containing folder to app or some dir
EXPOSE 8080
CMD ["http-rs", "8080", "/app"] # run the app , PORT:8080;DIR:/app
# this does look bloated, but its clean!
CMD ["http-rs", "--port", "8080", "--root", "/app"] # run the app , PORT:8080;DIR:/app
```