An open API service indexing awesome lists of open source software.

https://github.com/wtdcode/link-shorter-rs

Minimal token-authentication link shorter service written in rust
https://github.com/wtdcode/link-shorter-rs

linkshorter

Last synced: 3 months ago
JSON representation

Minimal token-authentication link shorter service written in rust

Awesome Lists containing this project

README

          

# Link Shorter Written in Rust

Live demo: https://gu.mk

## docker-compose

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

```yaml
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:

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