Skip to content

Minimal ShareX image host written in js using express and express-fileupload.

License

Notifications You must be signed in to change notification settings

mymindishazel/sharex-image-host

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sharex-image-host

Minimal ShareX image host written in js using express and express-fileupload.

Installation

npm i to install dependencies

node . to run the server

Configuration

Config is stored in .env

Example:

PORT="1337" # port to run the application on
IMAGE_AUTH="yourpassword" # password protection for image upload and deletion

Usage

POST /upload

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


DELETE /:image

Headers: Authorization: YOUR_PASSWORD

Response: 204

About

Minimal ShareX image host written in js using express and express-fileupload.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%