Skip to content

wtdcode/link-shorter-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Link Shorter Written in Rust

Live demo: https://gu.mk

docker-compose

Docker compose is the recommended way to setup. Sample configuration:

services:
  shorter:
    image: lazymio/link-shorter-rs:latest
    ports:
      - "127.0.0.1:1566:1566"
    volumes:
      - ./data:/data
    environment:
      - RUST_LOG=link_shorter_rs=debug
    command: serve -d /data/data.sqlite3

Add a token

To add a token, do:

docker compose exec -it shorter /usr/bin/link-shorter-rs add-token -t "token_to_add" -d /data/sqlite3

About

Minimal token-authentication link shorter service written in rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published