command
Version:
v2.2.0
Opens a new window with list of versions in this module.
Published: Jul 7, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Demo: 代理鉴权 —— 配置 TUNNEL_AUTH_TOKEN 后,HTTP 代理要求客户端携带 token。
演示:
- ConfigureGatewayAuth 启用网关 token 鉴权
- 无 token 请求被拒(401)
- 带 token 请求成功(Authorization: Bearer / X-Tunnel-Token)
运行:
go run ./core/tunnel/example/auth
Source Files
¶
Click to show internal directories.
Click to hide internal directories.