From a4cfe56dc7ea0c389b2097a5f07ed6e7e50bdfcb Mon Sep 17 00:00:00 2001 From: colin Date: Tue, 1 Oct 2024 10:37:31 -0400 Subject: [PATCH] Add src/SIMPLE-SEND.md --- src/SIMPLE-SEND.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/SIMPLE-SEND.md diff --git a/src/SIMPLE-SEND.md b/src/SIMPLE-SEND.md new file mode 100644 index 0000000..c5c3307 --- /dev/null +++ b/src/SIMPLE-SEND.md @@ -0,0 +1,30 @@ +# send + +## Overview +The `send` function allows for securely uploading files or piped data to the Firefox Send-compatible server at `https://send.aenow.fun`. A random password is generated for each upload, and the upload has a default expiration of 7 days. + +## Usage + +### Upload a File +```bash +send +``` + +### Upload Piped Data +```bash +echo "some data" | send +``` + +## Environment Variables + +- `FFSEND_URL`: URL to download the `ffsend` binary. Default: `https://github.com/timvisee/ffsend/releases/download/v0.2.76/ffsend-v0.2.76-linux-x64` +- `FFSEND_DIR`: Directory to store the `ffsend` binary. Default: `$HOME/.local/bin` +- `FFSEND_PATH`: Full path to the `ffsend` binary. Default: `$FFSEND_DIR/ffsend` +- `DEFAULT_FFSEND_HOST`: Host URL for uploading files. Default: `https://send.aenow.fun` +- `FFSEND_CUSTOM_HOST`: Custom host URL for uploading files. Overrides `DEFAULT_FFSEND_HOST`. + +## Installation +The function will automatically install the `ffsend` binary if it is not present. The binary is downloaded from: +``` +https://github.com/timvisee/ffsend/releases/download/v0.2.76/ffsend-v0.2.76-linux-x64 +``` \ No newline at end of file