Go to file
2024-07-10 19:47:22 +00:00
middleware init 2024-07-10 18:57:38 +02:00
routes init 2024-07-10 18:57:38 +02:00
.gitignore init 2024-07-10 18:57:38 +02:00
example_sharex_config.sxcu Update example_sharex_config.sxcu 2024-07-10 19:19:32 +00:00
LICENSE make it OSS :3 2024-07-10 19:41:32 +00:00
main.js init 2024-07-10 18:57:38 +02:00
package.json add a OSS license (for real) :3 2024-07-10 19:47:22 +00:00
README.md Update README.md 2024-07-10 19:21:38 +00:00
yarn.lock init 2024-07-10 18:57:38 +02:00

Shitty but stable uploader :3

Configuring .env File

R2_ENDPOINT=yourid.r2.cloudflarestorage.com
R2_ACCESS_KEY=insert_a_access_key
R2_SEC_KEY=insert_a_secret_key
R2_BUCKET=your_bucket
R2_DOMAIN=r2_domain

UPLOAD_SEC=base64_upload_apikey

PORT=3000

Deployment

yarn install
yarn start

Usage in ShareX

To use this service in ShareX, download example_sharex_config.sxcu from the source and edit the following:

"RequestURL": "https://upload.insertdomain.com", - edit this line with your endpoint domain in your web server (caddy is the easiest to setup)
"X-API-Key": "insert_your_api_key_found_in_UPLOAD_SEC" - edit this line with your key set in .env file under UPLOAD_SEC