Files
fscarmen-sing-box/config.conf
T
fscarmen d6cb1796f4 v1.3.12 feat: add Hysteria2 Realm support
* add Hysteria2 Realm configuration for servers and supported clients
* export Realm options for Clash/Mihomo and sing-box clients
* support WARP-assisted hole punching for strict NAT environments
* allow enabling or disabling Hysteria2 Realm from `sb -d`
* add non-interactive Realm and Realm WARP parameters
* rename `PORT_HOPPING_RANGE` to `HY2_PORT_HOPPING_RANGE` to align Hysteria2 optional parameter prefixes

feat: 增加 Hysteria2 Realm 支持

* 为服务端和支持的客户端增加 Hysteria2 Realm 配置
* 为 Clash/Mihomo 和 sing-box 客户端导出 Realm 参数
* 支持严格 NAT 环境下的 WARP 辅助打洞
* 支持通过 `sb -d` 开启或关闭 Hysteria2 Realm
* 增加 Realm 和 Realm WARP 无交互参数
* 将 `PORT_HOPPING_RANGE` 改为 `HY2_PORT_HOPPING_RANGE`,统一 Hysteria2 可选参数名前缀
2026-05-14 22:44:42 +00:00

94 lines
3.8 KiB
Plaintext
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.
# 使用说明 / Usage:
# 1. 复制此文件并重命名为 config.conf / Copy this file and rename it to config.conf
# 2. 根据需要修改配置参数 / Modify the configuration parameters as needed
# 3. 执行安装命令 / Run the installation command:
# bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-box.sh) -f config.conf
# 配置文件说明 / Configuration Description:
# 语言选项 / Language option:
# c 为中文 / c for Chinese
# e 为英文 / e for English
LANGUAGE=''
# 协议选择 / Protocol selection:
# a 为全部协议,也可以选择 b-m 的任意组合
# a for all protocols, or choose any combination from b-m
# b: VLESS + Reality
# c: Hysteria2
# d: Tuic V5
# e: ShadowTLS
# f: Shadowsocks
# g: Trojan
# h: VMESS + WebSocket
# i: VLESS + WebSocket + TLS
# j: VLESS + H2 + Reality
# k: VLESS + gRPC + Reality
# l: AnyTLS
# m: NaiveProxy
CHOOSE_PROTOCOLS=''
# 起始端口号,其他协议会依次递增 / Starting port number, other protocols will increment sequentially
START_PORT=''
# Nginx 端口号,用于 WebSocket 协议 / Nginx port number for WebSocket protocol
PORT_NGINX=''
# 服务器 IP 地址,支持 IPv4 或 IPv6 / Server IP address, supports IPv4 or IPv6
SERVER_IP=''
# CDN 域名,用于优化线路 / CDN domain name for line optimization
CDN=''
# UUID,用于节点识别和认证 / UUID for node identification and authentication
UUID_CONFIRM=''
# 是否启用订阅功能 / Enable subscription function: true or false
SUBSCRIBE=''
# 是否启用 Argo 隧道 / Enable Argo Tunnel: true or false
# 如果为 true,则使用 Argo Tunnel 回源,固定域名需要填写 ARGO_DOMAIN 与 ARGO_AUTH,临时隧道无需填写
# If true, use Argo Tunnel for origin connection. For fixed domain, fill in ARGO_DOMAIN and ARGO_AUTH. For temporary tunnel, leave them empty
# 如果为 false,则需要填写 VMESS_HOST_DOMAIN 和 VLESS_HOST_DOMAIN
# If false, fill in VMESS_HOST_DOMAIN and VLESS_HOST_DOMAIN
ARGO=''
# VMESS + WebSocket 域名配置,当 ARGO='false' 时必填
# VMESS + WebSocket domain configuration, required when ARGO='false'
VMESS_HOST_DOMAIN=''
# VLESS + WebSocket + TLS 域名配置,当 ARGO='false' 时必填
# VLESS + WebSocket + TLS domain configuration, required when ARGO='false'
VLESS_HOST_DOMAIN=''
# Argo 域名设置,当 ARGO='true' 时必填,如果使用临时隧道,则无需填写
# Argo domain settings, required when ARGO='true'. Leave empty if using temporary tunnel
ARGO_DOMAIN=''
# Argo 认证信息,可以是 JsonToken 和 API 方式,当 ARGO='true' 时必填,如果使用临时隧道,则无需填写
# Argo authentication information can be provided as JSON, Token, or API credentials. Required when ARGO='true'. Leave empty if using temporary tunnel
ARGO_AUTH=''
# 端口跳跃范围,用于 Hysteria2 协议,格式为 起始端口:结束端口
# Port hopping range for Hysteria2 protocol, format: start_port:end_port
HY2_PORT_HOPPING_RANGE=''
# 是否启用 Hysteria2 Realm / Enable Hysteria2 Realm: true or false
# 适用于回国或者没有公网入口的机器;有公网入口时不建议使用
# Useful for China-back routing or machines without public inbound access; not recommended when the server already has a public inbound IP/port
HY2_REALM=''
# 是否启用 Hysteria2 Realm 的 WARP 辅助打洞 / Enable WARP-assisted hole punching for Hysteria2 Realm: true or false
# 适用于 NAT 严格环境,如对称 NAT;设为 true 时会自动启用 HY2_REALM
# Useful for strict NAT environments such as symmetric NAT. Setting this to true automatically enables HY2_REALM
HY2_WARP=''
# Reality 的私钥, 留空则随机生成
# Reality private key. Random generation if left empty
REALITY_PRIVATE=''
# 节点名称,支持 emoji 表情
# Node name, emoji supported
NODE_NAME_CONFIRM=''