GithubHelp home page GithubHelp logo

ngn13 / kisalt Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 31 KB

simple link shortener

Home Page: https://k.ngn.tf

License: GNU General Public License v3.0

Dockerfile 3.63% Makefile 3.81% C++ 54.58% HTML 10.25% CSS 19.05% JavaScript 8.68%
link-shortener link-shortener-api url-shortener

kisalt's Introduction

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>

kisalt's People

Contributors

ngn13 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.