mini-shortener

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

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:

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL