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
- Host: GitHub
- URL: https://github.com/wtdcode/link-shorter-rs
- Owner: wtdcode
- Created: 2025-01-03T16:43:54.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-04T07:11:41.000Z (over 1 year ago)
- Last Synced: 2025-01-15T10:33:09.051Z (over 1 year ago)
- Topics: linkshorter
- Language: Rust
- Homepage:
- Size: 30.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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
```