Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1 KB

README.MD

File metadata and controls

64 lines (42 loc) · 1 KB

Linkd

A simple but powerful selfhosted link shortener service written for Deno

How do I use it?

Start the docker image

$ docker run -p 1336:1336 -d hexf/linkd

Add a url

$ curl --request PUT --data "link=https://github.com/hexf&short=github" http://localhost:1336/link

Use the link

$ curl -L http://localhost:1336/github

See the clicks

$ curl http://localhost:1336/link?short=github | jq

Persistent Data Storage

The following persistent data storage options are available, by setting the ENV flags as displayed

Memory (Default)

LINKD_STORAGEPROVIDER=MEMORY

Redis

LINKD_STORAGEPROVIDER=REDIS
LINKD_REDIS_HOSTNAME=localhost
LINKD_REDIS_PORT=6379

Other Configuration

Set the Base URL

LINKD_URL=https://go.hexf.me/

Todo

  • Redis Data Storage
  • PostgreSQL Data Storage
  • Frontend UI
  • Kubernetes Manifest
  • Docker Compose Examples