For easy use with ShareX
Available on docker hub as 3ventic/sharex-short-url. See docker-compose.example.yml for an example setup.
- Clone repo
go build -o shorturlenv SECRET="super secret passphrase" DATA_PATH=/path/to/data BASE_URL=https://link.example.com PORT=8000 ./shorturl
Edit & import (in whatever order) to ShareX custom uploaders after installing.
{
"Name": "LABEL FOR MENUS",
"RequestType": "GET",
"RequestURL": "https://link.example.com/new",
"FileFormName": "",
"Arguments": {
"secret": "super secret passphrase from env",
"target": "$input$"
},
"Headers": {},
"ResponseType": "Text",
"RegexList": [],
"URL": "$json:short$",
"ThumbnailURL": "",
"DeletionURL": ""
}
See shorten.fish.