|
|
|
@ -4,29 +4,15 @@ A file and text uploading service with configurable time limit
|
|
|
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
|
|
## compiling |
|
|
|
|
|
|
|
|
|
```sh |
|
|
|
|
cargo build --release |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
or |
|
|
|
|
## running |
|
|
|
|
|
|
|
|
|
```sh |
|
|
|
|
docker build -t datatrash . |
|
|
|
|
docker cp datatrash:/home/rust/.cargo/bin/datatrash datatrash |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
or, to just run it in docker |
|
|
|
|
|
|
|
|
|
```sh |
|
|
|
|
docker-compose up -d --build |
|
|
|
|
``` |
|
|
|
|
For running on docker, use the provided `docker-compose.yml.sample` and adapt it to your needs. |
|
|
|
|
To run the software directly, use the compiling instructions below. |
|
|
|
|
|
|
|
|
|
## running & config |
|
|
|
|
## config |
|
|
|
|
|
|
|
|
|
- The `static` files directory needs to be next to the binary. |
|
|
|
|
- The `static` directory needs to be writable |
|
|
|
|
- The `static` directory – sadly – needs to be writable |
|
|
|
|
- On startup the `index.html` will be generated based on the config |
|
|
|
|
- The maximum filename length is 255 |
|
|
|
|
|
|
|
|
@ -65,3 +51,16 @@ Require authentication for certain uploads
|
|
|
|
|
| NO_AUTH_MAX_TIME | | |
|
|
|
|
| NO_AUTH_LARGE_FILE_MAX_TIME | | |
|
|
|
|
| NO_AUTH_LARGE_FILE_SIZE | | |
|
|
|
|
|
|
|
|
|
## compiling |
|
|
|
|
|
|
|
|
|
```sh |
|
|
|
|
cargo build --release |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
or |
|
|
|
|
|
|
|
|
|
```sh |
|
|
|
|
docker build -t datatrash . |
|
|
|
|
docker cp datatrash:/home/rust/.cargo/bin/datatrash datatrash |
|
|
|
|
``` |
|
|
|
|