Skip to content

Super simple short link service | 超简单的短链接服务

Notifications You must be signed in to change notification settings

hslr-s/sun-short-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sun-Short-Link (短链接)

Usage

Parameter

  -c string
        Path to config file
  -i    Generate example config file

Run

go run main.go -i

go run main.go -c config.yml

Docker Run

Create file sun-short-link.yml.

port: 8080
links:
  - name: "abc"
    url: "http://example.cc"
    type: 302
  - name: "abcd"
    url: "http://example1.cc"
    type: 302

Run

docker run -p 8080:8080 -v ./sun-short-link.yml:/app/sun-short-link.yml --name sun-short-link hslr/sun-short-link

About

Super simple short link service | 超简单的短链接服务

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published