Files
PortRelay/deploy/portrelay-server.env.example
T
DeepFal 86e159b3f0 PortRelay:把内网服务临时、可控地开放给同事
边缘网关 + Agent 的端口中继:Agent 主动连出到网关,把内网目标挂到网关端口上;
通过邀请链接按设备授权,可选审批,首次连接起计时,到期、闲置自动收回。

- portrelay-server:边缘网关(端口池、白名单与授权租约、邀请与授权网页)
- portrelay-agent:Agent(yamux 隧道、本地 API 与网页面板、流量统计)
- mac-native:SwiftUI 菜单栏 App
2026-10-13 16:33:17 +08:00

11 lines
553 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 复制为 /etc/portrelay-server.env 并设为 0600:
# sudo install -m 600 deploy/portrelay-server.env.example /etc/portrelay-server.env
#
# Agent 与网关之间的共享密钥(必填)。生成方式:openssl rand -hex 24
PORTRELAY_TOKEN=change-me-to-a-long-random-string
# 额外的启动参数(可选),例如:
# -public-host gw.example.com 授权页上展示给访问者的地址(默认取访问者打开链接时用的地址)
# -trust-proxy 网关前面有可信反向代理时才开启
PORTRELAY_ARGS=