Skip to content

Cloudflare Workers script that allows you to upload files to ShareX Custom Uploaders and use with your own domain.

Notifications You must be signed in to change notification settings

windium/ShareX-Custom-URL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

ShareX Custom URL

Cloudflare Workers script that allows you to upload files to ShareX Custom Uploaders and use with your own domain.

  • You need to use Cloudflare as a DNS service to connect your worker to domain.

Installation

Clone this repo using git git clone https://github.com/Windium/ShareX-Custom-URL.git

Cloudflare Worker

Create worker account and worker. guide

Open worker-script.js on any text exitor, change cdnDomain to custom uploader url, change domain to your domain and change secret to random secret key.

Copy script then on Cloudflare Workers page > Quick edit > Paste the content of worker-script.js > Done

ShareX Config

  • Open ShareX > Destinations > Custom uploader settings > Import > From file > Select custom-domain.sxcu file > Open
  • On custom domain settings change request url to your domain and change key value at headers section to your secret key you set at Cloudflare Worker step.
  • Go back to ShareX menu > Destinations > URL Shortener > Select Custom URL Shortener
  • After capture tasks must be selected as Upload image to host.
  • After upload tasks select Shorten URL and Copy URL to clipboard.

About

Cloudflare Workers script that allows you to upload files to ShareX Custom Uploaders and use with your own domain.

Topics

Resources

Stars

Watchers

Forks