Skip to content

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDNv2

Deprecated - This project will no longer get any updates.

A very.... very lightweight ShareX content uploader

Only a PoC, should not use in prod without reading below information

After 1 year of using this ShareX CDN, it can finally be deprecated. It still works and may still work in the future, however, there are some glaring issues that need to be solved before it can be deployed

  • Speed - Being made in Python, it is honestly not really... "lightweight" | also the fact that it's made in Python simply makes it slower than if it was made in another programming language.
  • R2 Dependence - The first version of this project included support for local storage and this does too, however it also requires R2 because Heroku does not have persistant local storage.
  • Security - This project has no security at all. I recently added an API key for some basic protection, but it's a really just a hardcoded implementation. There is no frontend interface to generate keys, handle user authentication, etc. These are all things I wanted to do, but never found time.
  • Pointless - It's pointless. There are better ShareX upload servers out there (even lightweight ones like this).

Setup

  1. Download all files.
  2. Install dependencies. python3 -m pip install -r requirements.txt
  3. If you want, you can get a S3 bucket instance from AWS or an R2 from cloudflare (its free!). If you don't want to, however, you can just delete that code.
  4. Make a random api key. It can be any string. But since its stored in plaintext, please refrain from using a password. You can use a random UUID or a SHA hash of some sort.
  5. The only thing you need to fill out in the code is the bucket URL, i never made that an env variable.
  6. Put your keys in a .env like such:
AWS_ACCESS_KEY_ID=""
AWS_SECRET_ACCESS_KEY=""
URL="http://127.0.0.1:5002/"
DD_KEY="" // this is your api key! put it here! (dont worry about the name of the variable)
  1. Run the python file with python3 main.py You are done! You can download your ShareX custom uploader config file from <server url>/config



primitt - ❤️ from The Homework Club

About

A lightweight ShareX custom uploader - deprecated

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages