From 0c4339d563136dd0591a62d815efe9651850f9d6 Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Tue, 19 May 2026 22:37:39 +0800 Subject: [PATCH] xhttp + reality --- config/client.json | 11 +++++++---- config/server.json | 14 ++++++++++++-- docker-compose.yml | 2 ++ 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/config/client.json b/config/client.json index 868e4e8..c5f8ee1 100644 --- a/config/client.json +++ b/config/client.json @@ -18,7 +18,7 @@ "tag": "proxy", "protocol": "vless", "settings": { - "address": "nginx", + "address": "xray-server", "port": 443, "id": "bc95a789-4dcb-42ae-8d01-ca1dc41d9a33", "encryption": "none", @@ -30,10 +30,13 @@ "mode": "auto", "path": "/trapdoor" }, - "security": "tls", - "tlsSettings": { + "security": "reality", + "realitySettings": { "serverName": "nginx", - "allowInsecure": true + "publicKey": "Cdc5-NYobJrn-aubIH4rCdV8_JuMvb29gEh39jR7MmI", + "shortId": "01", + "spiderX": "/fhtdjgu", + "fingerprint": "ios" } } }, diff --git a/config/server.json b/config/server.json index d9d6805..3c458cf 100644 --- a/config/server.json +++ b/config/server.json @@ -5,7 +5,7 @@ "inbounds": [ { "listen": "0.0.0.0", - "port": 8080, + "port": 443, "protocol": "vless", "settings": { "clients": [ @@ -23,7 +23,17 @@ "mode": "auto", "path": "/trapdoor" }, - "security": "none" + "security": "reality", + "realitySettings": { + "target": "nginx:443", + "serverNames": [ + "nginx" + ], + "privateKey": "6ATHL0mR5r1oKUwPxcAifxGH9yLSNP-8bbY6QOL643I", + "shortIds": [ + "01" + ] + } } } ], diff --git a/docker-compose.yml b/docker-compose.yml index 4c1b1c5..23e106b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,6 +29,8 @@ services: volumes: - ./config/server.json:/etc/xray/config.json:ro command: run -c /etc/xray/config.json + ports: + - 127.0.0.1:1443:443 xray-client: image: ghcr.io/xtls/xray-core:latest