File tree Expand file tree Collapse file tree 3 files changed +274
-90
lines changed
Expand file tree Collapse file tree 3 files changed +274
-90
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,17 @@ HOSTMODE_PORT=443
4040docker run -d --name xray_xhttp_reality --restart=always --log-opt max-size=100m --log-opt max-file=3 --network host -e HOSTMODE_PORT=$HOSTMODE_PORT wulabing/xray_docker_xhttp_reality:latest
4141```
4242
43+ ## 持久化配置(推荐)
44+ 使用宿主机目录保存 UUID/私钥/路径等信息,镜像更新后连接信息保持不变:
45+
46+ ```
47+ docker pull wulabing/xray_docker_xhttp_reality:latest
48+ EXTERNAL_PORT=443
49+ docker run -d --name xray_xhttp_reality --restart=always --log-opt max-size=100m --log-opt max-file=3 -p $EXTERNAL_PORT:443 -e EXTERNAL_PORT=$EXTERNAL_PORT -v "./wulabing_xray_config:/data" wulabing/xray_docker_xhttp_reality:latest
50+ ```
51+
52+ 如果你之前保存过旧版的 config_info.txt,可放到 ` ./wulabing_xray_config/config_info.txt ` 或 ` ./wulabing_xray_config/xhttp_reality_config_info.txt ` ,启动时会自动兼容读取。
53+
4354查看日志获取配置信息,如下所示,按照提示配置客户端即可,
4455
4556```
@@ -87,6 +98,7 @@ docker rm -f xray_xhttp_reality
8798* SERVERNAMES:服务器名称列表。默认值为 www.apple.com images.apple.com。
8899* PRIVATEKEY:私钥。若未设置,脚本将自动生成一个新的私钥和对应的公钥。
89100* NETWORK:网络类型。默认值为 xhttp,不要进行修改。
101+ * CONFIG_DIR:持久化目录。默认值为 /data。
90102
91103## 常量及默认值
92104* flow:留空
@@ -121,4 +133,4 @@ https://www.vultr.com/?ref=6881279
121133https://nube.sh/invite/5986088028ENM0
122134
123135您可以通过 USDT 支持我,感谢您的支持
124- TRC20: TU8mLTPfa5Y9nmszyfyt2VRAtuZhdLexL8
136+ TRC20: TU8mLTPfa5Y9nmszyfyt2VRAtuZhdLexL8
Original file line number Diff line number Diff line change 1- 0.0.32
1+ 0.0.33
You can’t perform that action at this time.
0 commit comments