Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/masx200/golang-reverse-proxy-middleware
golang-reverse-proxy-middleware
https://github.com/masx200/golang-reverse-proxy-middleware
Last synced: 6 days ago
JSON representation
golang-reverse-proxy-middleware
- Host: GitHub
- URL: https://github.com/masx200/golang-reverse-proxy-middleware
- Owner: masx200
- License: mit
- Created: 2024-03-24T17:03:51.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-10-30T04:41:11.000Z (16 days ago)
- Last Synced: 2024-10-30T06:12:57.592Z (16 days ago)
- Language: Go
- Homepage:
- Size: 453 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# golang-reverse-proxy-middleware
#### 介绍
golang-reverse-proxy-middleware
#### 软件架构
软件架构说明
#### 安装教程
1. `cd static && pnpm install && pnpm run build && cd ..`
2. `cp -r -v static/dist/* public/`
3. `go build main.go`
#### 使用说明
```
go run main.go
```设置环境变量 token 访问秘钥token123456
设置环境变量 port 监听端口8080
访问地址:
`http://localhost:8080/token/token123456/https/www.360.cn`
`http://localhost:8080/token/token123456/http/example.com`
# 设定代理行为的重定向方式
可以设定请求头中的字段"x-proxy-redirect"为"error" | "follow" |
"manual"来设定代理行为的重定向方式.