# 仅当宿主机【没有】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; } }