- Have
cargoinstalled (if not using Docker)
- Update the .env.example files and rename them to .env
Run the command: cargo run --release to initiate the server
For compilation,
cargo build --release
| Name | Description |
|---|---|
| Port | The server port |
| Upload_dir | Uploaded files will be placed here |
| Access_key | Auth key used when uploading files (you have to create one) |
In order to use the containerized version of the server, you can use docker-compose.yml (Changing the .env file will not do anything)
- Edit the
docker-compose.ymlfile to set:
- HOST_PORT: The port on the host which will expose the server
- ACCESS_KEY: Auth key used when uploading files
- HOST_DIRECTORY: Directory on host that will be bound to the container's upload directory (will let you view uploads)
- Run
docker-compose up -dand wait for the service to start
NOTE: Do NOT change anything not in [] unless you alter the
Dockerfileas well
The client is standard CLI tool that you can use to upload files with. For more help, you can run:
cargo run -- -hif using cargo./client -hif using a binary (compilation steps are the same as server)
For directory uploads, the uploaded links for each file will be recorded in the
records.jsonfile (or whatever the user selects with the-rarguement)
| Name | Description |
|---|---|
| Base_url | Base Url of file server (https://example.com) |
| Access_key | Auth key used when uploading files (Needs to be the same as server's) |