forward proxy to your target server
265
修改配置文件conf.toml
[[servers]]
# 目标服务地址
address = "https://zhuyasen.com"
# 路由前缀
prefixPath = "/blog"
# 代理服务端口
port = 8080
# 如果有多个代理服务,复制上面配置,修改地址和端口即可。
使用命令启动服务:
forward-proxy -configFile=conf.toml
使用docker启动服务:
# 使用go1.12以上版本编译
CGO_ENABLED=0 go build -o forward-proxy
# 构建镜像
docker build -t zhufuyi/forward-proxy:latest .
# 启动服务
docker-compose up -d
Content type
Image
Digest
Size
8.2 MB
Last updated
almost 7 years ago
docker pull zhufuyi/forward-proxy