ShareX compatible backend for uploading media.
- Get the latest code using
git clone https://github.com/csprl/screenshot-backend.git
or by downloading the ZIP archive. - Bulid code with
go build -ldflags="-s -w" .
- Copy config.json.example to config.json and modify the settings to your liking. Note that baseUrl should not end with a
/
. If a user prefix is a folder, it should end with a/
and be pre-created. - Run the
screenshot-backend
executable.
- Download ShareX from https://getsharex.com.
- Open
Destinations -> Custom uploader settings
from the right-click menu. - Press
Import -> From URL
and typehttps://github.com/csprl/screenshot-backend/master/ShareX.sxcu
. - Modify Request URL and the Authorization value under Headers.
- Finally select screenshot-backend under Image uploader, Text uploader and File uploader.
- Test your new settings with the Test button. If successful you should see
URL: ...
in Test result.