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
|
# http-rs
|
||||||
|
|
||||||
Simple webserver, designed to be minimal and just work.
|
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 --port 8080 --root ./data/to/serve
|
||||||
./http-rs 8080 ./dir/
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 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
|
## Docker
|
||||||
|
|
||||||
This can be run within a docker container. And tbh its very simple!
|
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
|
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">
|
<p id="http-rs">
|
||||||
<i>
|
<i>
|
||||||
<!-- link to project -->
|
<!-- 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
|
http-rs
|
||||||
</a>
|
</a>
|
||||||
</i>@<span id="timestamp"></span></p>
|
</i>@<span id="timestamp"></span></p>
|
||||||
|
|||||||
Reference in New Issue
Block a user