diff --git a/config/server/vless+reality.yaml b/config/server/vless+reality.yaml index c2c9d32..474a1e1 100644 --- a/config/server/vless+reality.yaml +++ b/config/server/vless+reality.yaml @@ -9,29 +9,20 @@ "listen": "::", "listen_port": 443, "users": - [ - { - "name": "AK-JP-100G", - "uuid": "singbox生成", - "flow": "xtls-rprx-vision", - }, - ], + [{ "name": "$NAME", "uuid": "$UUID", "flow": "xtls-rprx-vision" }], "tls": { "enabled": true, - "server_name": "s0.awsstatic.com", + "server_name": "$SNI", "reality": { "enabled": true, - "handshake": - { "server": "s0.awsstatic.com", "server_port": 443 }, - "private_key": "singbox生成", - "short_id": ["singbox生成"], + "handshake": { "server": "$SNI", "server_port": 443 }, + "private_key": "$PRIVATE_KEY", + "short_id": "$SHORT_ID", }, }, }, ], - "outbounds": [{ "type": "direct" }, { "type": "dns", "tag": "dns-out" }], - "route": { "rules": [{ "protocol": "dns", "outbound": "dns-out" }] }, + "outbounds": [{ "type": "direct" }], } - diff --git a/script/singbox.sh b/script/singbox.sh index 8a93202..1eacd7d 100644 --- a/script/singbox.sh +++ b/script/singbox.sh @@ -93,23 +93,49 @@ install_singbox() { mkdir -p "$CONFIG_DIR" cat >"$CONFIG_DIR/config.json" <"$STATE_FILE" <