Sign inSign up

soulteary/mini-shortener

By soulteary

•Updated almost 2 years ago

A simple, lightweight, short link tool that works according to configuration files.

Image
0

2.0K

soulteary/mini-shortener repository overview

⁠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

docker run -v `pwd`/rules:/app/rules -p 8080:8901 soulteary/mini-shortener -d

Tag summary

Content type

Image

Digest

sha256:21bf6b362…

Size

2.4 MB

Last updated

almost 2 years ago

docker pull soulteary/mini-shortener