[fix] 修复二维码相关异常
[update] 完善使用文档
This commit is contained in:
wulabing 2023-04-17 20:52:24 +08:00
parent 923fb3b8e6
commit f08b38929b
3 changed files with 5 additions and 4 deletions

View File

@ -6,7 +6,7 @@ LABEL maintainer="wulabing <wulabing@gmail.com>"
#ENV GOPROXY=https://goproxy.cn,direct #ENV GOPROXY=https://goproxy.cn,direct
WORKDIR /app WORKDIR /app
RUN apk add --no-cache git libqrencode && git clone https://github.com/XTLS/Xray-core.git . && \ RUN apk add --no-cache git && git clone https://github.com/XTLS/Xray-core.git . && \
go mod download && \ go mod download && \
go build -o xray /app/main/ go build -o xray /app/main/
@ -29,7 +29,7 @@ COPY ./config.json /
COPY --from=builder /app/xray / COPY --from=builder /app/xray /
RUN apk add --no-cache tzdata ca-certificates jq curl && \ RUN apk add --no-cache tzdata ca-certificates jq curl libqrencode && \
mkdir -p /var/log/xray &&\ mkdir -p /var/log/xray &&\
wget -O /geosite.dat https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat && \ wget -O /geosite.dat https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat && \
wget -O /geoip.dat https://github.com/v2fly/geoip/releases/latest/download/geoip.dat && \ wget -O /geoip.dat https://github.com/v2fly/geoip/releases/latest/download/geoip.dat && \

View File

@ -14,6 +14,7 @@ curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
EXTERNAL_PORT 为你想要使用的端口如下所示你将使用443端口 EXTERNAL_PORT 为你想要使用的端口如下所示你将使用443端口
``` ```
docker pull wulabing/xray_docker_reality:latest
EXTERNAL_PORT=443 EXTERNAL_PORT=443
docker run -d --name xray_reality --restart=always -p $EXTERNAL_PORT:443 -e EXTERNAL_PORT=$EXTERNAL_PORT wulabing/xray_docker_reality:latest docker run -d --name xray_reality --restart=always -p $EXTERNAL_PORT:443 -e EXTERNAL_PORT=$EXTERNAL_PORT wulabing/xray_docker_reality:latest
``` ```

View File

@ -63,12 +63,12 @@ else
if [ "$IPV4" != "null" ]; then if [ "$IPV4" != "null" ]; then
SUB_IPV4="vless://$UUID@$IPV4:$EXTERNAL_PORT?encryption=none&security=reality&type=$NETWORK&sni=$FIRST_SERVERNAME&fp=chrome&pbk=$PUBLICKEY&flow=xtls-rprx-vision#wulabing_docker_vless_reality_vision" SUB_IPV4="vless://$UUID@$IPV4:$EXTERNAL_PORT?encryption=none&security=reality&type=$NETWORK&sni=$FIRST_SERVERNAME&fp=chrome&pbk=$PUBLICKEY&flow=xtls-rprx-vision#wulabing_docker_vless_reality_vision"
echo "IPV4 订阅连接: $SUB_IPV4" >>/config_info.txt echo "IPV4 订阅连接: $SUB_IPV4" >>/config_info.txt
echo "IPV4 订阅二维码: echo $SUB_IPV4 | qrencode -o - -t UTF8" >>/config_info.txt echo -e "IPV4 订阅二维码:\n $(echo "$SUB_IPV4" | qrencode -o - -t UTF8)" >>/config_info.txt
fi fi
if [ "$IPV6" != "null" ];then if [ "$IPV6" != "null" ];then
SUB_IPV6="vless://$UUID@$IPV6:$EXTERNAL_PORT?encryption=none&security=reality&type=$NETWORK&sni=$FIRST_SERVERNAME&fp=chrome&pbk=$PUBLICKEY&flow=xtls-rprx-vision#wulabing_docker_vless_reality_vision" SUB_IPV6="vless://$UUID@$IPV6:$EXTERNAL_PORT?encryption=none&security=reality&type=$NETWORK&sni=$FIRST_SERVERNAME&fp=chrome&pbk=$PUBLICKEY&flow=xtls-rprx-vision#wulabing_docker_vless_reality_vision"
echo "IPV6 订阅连接: $SUB_IPV6" >>/config_info.txt echo "IPV6 订阅连接: $SUB_IPV6" >>/config_info.txt
echo "IPV6 订阅二维码: echo $SUB_IPV6 | qrencode -o - -t UTF8" >>/config_info.txt echo -e "IPV6 订阅二维码:\n $(echo "$SUB_IPV6" | qrencode -o - -t UTF8)" >>/config_info.txt
fi fi