fix readme, template_fail.html ; update general info and url in template
This commit is contained in:
13
readme.md
13
readme.md
@@ -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
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<p id="http-rs">
|
||||
<i>
|
||||
<!-- link to project -->
|
||||
<a href="https://rattatwinko.servecounterstrike.com/gitea/rattatwinko/http-rs">
|
||||
<a href="https://rattatwinko.servecounterstrike.com/gitea/webspaces/http-rs">
|
||||
http-rs
|
||||
</a>
|
||||
</i>@<span id="timestamp"></span></p>
|
||||
|
||||
Reference in New Issue
Block a user