Files
pangolin/deploy/nginx/stream.full.tmpl
T
wangjia cf96989e01
deploy-pangolin / deploy (push) Has been cancelled
Phase 0: 容器化数据面 + CI/CD 自动部署
- deploy/: Xray VLESS+REALITY (11443, 经宿主 nginx SNI 分流) + sing-box Hysteria2 (UDP 443) docker-compose
- 幂等 deploy.sh / gen-secrets.sh / print-clients.sh;受限 nginx-apply 特权脚本 + 一次性 root-setup
- .gitea/workflows/deploy.yml: NAS runner 经 SSH 远程部署到 EC2
- docs/ plan/: 设计方案与实施计划

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-30 11:48:47 +08:00

24 lines
763 B
Cheetah

# 仅当宿主机【没有】nginx 时使用的完整 stream 配置(deploy.sh 自动判断)。
# 本机已有宿主 nginx,故此文件不会被使用 —— 留作「无 nginx 则先部署」的兜底。
#
# 用法(deploy.sh 在无 nginx 分支里):
# 1. 安装 nginx + stream 模块
# 2. 将本文件渲染到 /etc/nginx/stream.conf 并 include
# 3. nginx -t && systemctl enable --now nginx
stream {
map $ssl_preread_server_name $pangolin_backend {
www.apple.com 127.0.0.1:11443; # pangolin REALITY
default 127.0.0.1:11443;
}
server {
listen 443;
listen [::]:443;
proxy_pass $pangolin_backend;
ssl_preread on;
proxy_connect_timeout 10s;
proxy_timeout 3600s;
}
}