Minimal ShareX image host written in js using express and express-fileupload.
npm i
to install dependencies
node .
to run the server
Config is stored in .env
Example:
PORT="1337" # port to run the application on
IMAGE_AUTH="yourpassword" # password protection for image upload and deletion. You can also have multiple users like this: IMAGE_AUTH="yourpassword, yourfriendspassword"
Headers: Authorization: YOUR_PASSWORD
Form-data: image: THE_IMAGE
Response: 200
{
"filename": "example"
}
After that, the image will be available at yourdomain.com/i/:filename You can also append ?download=true to the end of the url to download the image
Headers: Authorization: YOUR_PASSWORD
Response: 204