go-short

command module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 17 Imported by: 0

README

go-short

go 短链接服务,类似于 git.io

运行方式

修改配置文件
mv config_production.yaml.example /data/config_production.yaml
运行
  1. 编译并运行
docker build -t short .
docker run -d --expose 8088 -v "/data/log:/var/log/short.liu.app" -v "/data/config_production.yaml:/short.liu.app/config_production.yaml" --name short short
  1. 或者直接运行我编译好的
docker run -d --expose 8088 -v "/data/log:/var/log/short.liu.app" -v "/data/config_production.yaml:/short.liu.app/config_production.yaml" --name short ghcr.io/yezige/short.liu.app:latest
增加 nginx
location ^~ /s/ {
  proxy_pass http://short:8088/;
}
redis 增加对应 key

set goshort:path:trace https://raw.githubusercontent.com/yezige/trace/main/run.sh

成功

则可使用短链接访问

curl liu.app/s/trace | bash

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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