0.0.13
[fix] 修复二维码相关异常 [update] 完善使用文档
This commit is contained in:
parent
923fb3b8e6
commit
f08b38929b
@ -6,7 +6,7 @@ LABEL maintainer="wulabing <wulabing@gmail.com>"
|
||||
#ENV GOPROXY=https://goproxy.cn,direct
|
||||
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 build -o xray /app/main/
|
||||
|
||||
@ -29,7 +29,7 @@ COPY ./config.json /
|
||||
|
||||
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 &&\
|
||||
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 && \
|
||||
|
||||
@ -14,6 +14,7 @@ curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
|
||||
EXTERNAL_PORT 为你想要使用的端口,如下所示,你将使用443端口
|
||||
|
||||
```
|
||||
docker pull wulabing/xray_docker_reality:latest
|
||||
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
|
||||
```
|
||||
|
||||
@ -63,12 +63,12 @@ else
|
||||
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"
|
||||
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
|
||||
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"
|
||||
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
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user