Skip to content

ngn13/kisalt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kisalt | simple link shortener

kisalt is a dead simple link shortener written with in C++ using the Crow web framework.

Deploy

You can easily deploy the app with docker and place it behind a proxy:

docker run -d --restart=unless-stopped \
     -p 127.0.0.1:8080:8080            \
     -e URL=https://k.example.com      \
     -v $PWD/data:/data                \
     ghcr.io/ngn13/kisalt

Change the URL accordingly.

To disable the saving the links, you can use the NOSAVE option. A volume is not needed when using this option:

docker run -d --restart=unless-stopped \
    -p 127.0.0.1:8080:8080             \
    -e URL=https://k.example.com       \
    -e NOSAVE=1                        \
    ghcr.io/ngn13/kisalt

Usage

You can use the web interface to shorten links, or you can directly use the API:

curl https://k.example.com/add\?url=<url>