https://github.com/soulteary/mini-shortener
Zero dependency, configuration-based, short link service with less than 200 lines.
https://github.com/soulteary/mini-shortener
docker shortlink shortlinks url-shortener yourls
Last synced: 6 months ago
JSON representation
Zero dependency, configuration-based, short link service with less than 200 lines.
- Host: GitHub
- URL: https://github.com/soulteary/mini-shortener
- Owner: soulteary
- License: apache-2.0
- Created: 2022-08-14T17:05:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-07T09:14:58.000Z (11 months ago)
- Last Synced: 2025-05-07T17:46:14.375Z (8 months ago)
- Topics: docker, shortlink, shortlinks, url-shortener, yourls
- Language: Go
- Homepage:
- Size: 46.9 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Mini Shortener

Configuration-based, short link service in less than 200 lines.
## Config
The configuration file is in plain text format, and each line contains a redirect rule:
```
"/ping" => "https://github.com/soulteary/mini-shortener"
```
The program startup will read the `rules` file in the current working directory by default.
## Docker
Download the rules configuration file in the project, or refer to the documentation above, create a local file, and execute the following commands:
```bash
docker run -v `pwd`/rules:/app/rules -p 8080:8901 soulteary/mini-shortener -d
```