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
Headers: Authorization: YOUR_PASSWORD
Form-data: image: THE_IMAGE
Response: 200
{
"filename": "example.png"
}
After that, the image will be available at yourdomain.com/:filename
Headers: Authorization: YOUR_PASSWORD
Response: 204