0.0.6
[fix] entrypoint.sh 逻辑错误修正 [update] Dockerfile 内容完善 [update] README.MD 更新 [update] Github Action 逻辑调整
This commit is contained in:
+3
-1
@@ -24,7 +24,9 @@ ENV TZ=Asia/Shanghai
|
||||
|
||||
WORKDIR /
|
||||
|
||||
COPY . /
|
||||
COPY ./entrypoint.sh /
|
||||
COPY ./config.json /
|
||||
|
||||
COPY --from=builder /app/xray /
|
||||
|
||||
RUN apk add --no-cache tzdata ca-certificates util-linux jq && \
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
|
||||
|
||||
|
||||
```
|
||||
docker run -d --name xray_reality --restart=always -p 443:443 wulabing/xray_docker_reality:0.0.1
|
||||
docker run -d --name xray_reality --restart=always -p 443:443 wulabing/xray_docker_reality:latest
|
||||
```
|
||||
|
||||
查看日志获取配置信息
|
||||
|
||||
@@ -1 +1,6 @@
|
||||
## 已知可用的 SERVERNAMES 及 DEST 列表
|
||||
|
||||
| DEST | SERVERMANES | 说明 |
|
||||
|-------------------|--------------------------------|------------------------------------|
|
||||
| www.apple.com:443 | images.apple.com www.apple.com | Apple 使用了 akamai CDN,全球各地存在节点,并且知名 |
|
||||
|
||||
+12
-10
@@ -1,7 +1,6 @@
|
||||
#!/bin/sh
|
||||
if [ -f /config_info.txt ]; then
|
||||
echo "config.json exist"
|
||||
cat /config_info.txt
|
||||
else
|
||||
if [ -z "$UUID" ]; then
|
||||
echo "UUID is not set, generate random UUID "
|
||||
@@ -42,17 +41,20 @@ else
|
||||
|
||||
jq ".inbounds[0].streamSettings.realitySettings.privateKey=\"$PRIVATEKEY\"" /config.json >/config.json_tmp && mv /config.json_tmp /config.json
|
||||
jq ".inbounds[0].streamSettings.network=\"$NETWORK\"" /config.json >/config.json_tmp && mv /config.json_tmp /config.json
|
||||
|
||||
# config info with green color
|
||||
echo -e "\033[32m" >/config_info.txt
|
||||
echo "UUID: $UUID" >>/config_info.txt
|
||||
echo "DEST: $DEST" >>/config_info.txt
|
||||
echo "SERVERNAMES: $SERVERNAMES (任选其一)" >>/config_info.txt
|
||||
echo "PRIVATEKEY: $PRIVATEKEY" >>/config_info.txt
|
||||
echo "PUBLICKEY: $PUBLICKEY" >>/config_info.txt
|
||||
echo "NETWORK: $NETWORK" >>/config_info.txt
|
||||
echo -e "\033[0m" >>/config_info.txt
|
||||
fi
|
||||
|
||||
# config info with green color
|
||||
echo -e "\033[32m" >/config_info.txt
|
||||
echo "UUID: $UUID" >>/config_info.txt
|
||||
echo "DEST: $DEST" >>/config_info.txt
|
||||
echo "SERVERNAMES: $SERVERNAMES (任选其一)" >>/config_info.txt
|
||||
echo "PRIVATEKEY: $PRIVATEKEY" >>/config_info.txt
|
||||
echo "PUBLICKEY: $PUBLICKEY" >>/config_info.txt
|
||||
echo "NETWORK: $NETWORK" >>/config_info.txt
|
||||
echo -e "\033[0m" >>/config_info.txt
|
||||
# show config info
|
||||
cat /config_info.txt
|
||||
|
||||
# run xray
|
||||
exec /xray -config /config.json
|
||||
|
||||
Reference in New Issue
Block a user