Sign inSign up

12abcloud/tiny-link

By 12abcloud

Updated almost 6 years ago

Tiny-link shorter server

Image
0

1.2K

12abcloud/tiny-link repository overview

Build Status

Tiny-link is a Fast and private URL shortner with several different ways to shorten any URL. It is available as Firefox and Chrome Plugin.  

Pre requirements

For hosting your own tiny-link instance you only need docker installed. Here you find a short documentation how to install docker.

 

How to run

Docker run

for having the shorted links, also after a restart available we mount the path where the links are saved to our local file system(with -v ).

docker run -d -p 8080:8080 -v /data/tiny-link:/var/lib/tiny-link/ 12abcloud/tiny-link

 

Api test via curl
curl -X POST \
  http://localhost:8080/create \
  -d '{"longurl":"http://google.de","ttl":{"hours":"0","minutes":"1","seconds":"0"},"selfdestruct":false}'

 

response:
http://localhost:8080/l/004

Environment variables

Environment variables can get set with the -e parameter, like docker run -e CHECK_PHISHING=true 12abcloud/tiny-link

VariableDescriptionDefault
DEBUGactivate the debug loggingfalse
HTTP_CREATE_PATHpath for the create API/create
CHECK_PHISHINGwill check the shorted links on create and on opening for phishingtrue
HTTP_SHORT_BASEPATHbasepath for the short link/l
HTTP_SHORT_PROTOprotocol to add for the short linkhttp
PATH_TO_FILEMAPpath where the informations should get stored/var/lib/tiny-link/tiny-link.map

 

How to use your own Server

Browser plugin
  1. Install the latest Browser Plug-in

https://addons.mozilla.org/de/firefox/addon/tiny-link https://chrome.google.com/webstore/detail/tiny-link/giiekkmkblmcnafbpohakghlaldmbilf  
2. Open the Plug-in Settings  
3. Enter your endpoint (e.g. http://sample.com/create) and hit Save

Tag summary

Content type

Image

Digest

Size

15.9 MB

Last updated

almost 6 years ago

docker pull 12abcloud/tiny-link