Index: Add option to remove /client help

fixes #7

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
Gunwant Jain
2022-04-23 04:39:52 +05:30
parent 78f8398382
commit c8637b04dd
5 changed files with 28 additions and 5 deletions

View File

@@ -55,6 +55,11 @@ PASTELINK="$URL$RESPONSE"
echo "$PASTELINK.$EXTENSION"
```
You have the option to remove the `/client` description / help in the
landing page. To show the `/client` description, run the `bin` binary
with either `BIN_CLIENT_DESC` env variable or a `-c` flag. More on
arguments later
#### Usage
It just works.
@@ -110,6 +115,7 @@ services:
environment:
- BIN_PORT=6163 # Defaults to 6162
- BIN_LIMITS={form="16 MiB"}
- BIN_CLIENT_DESC=placeholder
volumes:
- ./upload:/upload # upload folder will have your pastes
```
@@ -137,11 +143,14 @@ USAGE:
OPTIONS:
-a, --address <ADDRESS>
Address on which the webserver runs [default: 0.0.0.0]
Address on which the webserver runs [default: 127.0.0.1]
-b, --binary-upload-limit <BINARY_UPLOAD_LIMIT>
Binary uploads file size limit (in MiB) [default: 100]
-c, --client-desc
Include client description [env: CLIENT_DESC=]
-h, --help
Print help information