Skip to content

Commit 4be5ab2

Browse files
committed
v1.8.9
1 parent 36787ac commit 4be5ab2

File tree

10 files changed

+24
-33
lines changed

10 files changed

+24
-33
lines changed

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
uses: docker/metadata-action@v5
2020
with:
2121
images: |
22-
alireza7/x-ui
23-
ghcr.io/alireza0/x-ui
22+
enkidu6/x-ui
23+
ghcr.io/enkidu-6/x-ui
2424
tags: |
2525
type=ref,event=branch
2626
type=ref,event=tag

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ RUN go build -o build/x-ui main.go
99
RUN ./DockerInitFiles.sh "$TARGETARCH"
1010

1111
FROM alpine
12-
LABEL org.opencontainers.image.authors="[email protected]"
13-
ENV TZ=Asia/Tehran
12+
LABEL org.opencontainers.image.authors="Enkidu-6"
13+
ENV TZ=etc/UTC
1414
WORKDIR /app
1515

1616
RUN apk add ca-certificates tzdata

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
## Install & Upgrade to Latest Version
3838

3939
```sh
40-
bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/master/install.sh)
40+
bash <(curl -Ls https://raw.githubusercontent.com/Enkidu-6/x-ui/master/install.sh)
4141
```
4242

4343
## Install Legacy Version
4444

4545
**Step 1:** To install an old version, use following installation command. e.g., version `1.8.0`:
4646

4747
```sh
48-
VERSION=1.8.0 && bash <(curl -Ls "https://raw.githubusercontent.com/alireza0/x-ui/$VERSION/install.sh") $VERSION
48+
VERSION=1.8.0 && bash <(curl -Ls "https://raw.githubusercontent.com/Enkidu-6/x-ui/$VERSION/install.sh") $VERSION
4949
```
5050

5151
## Manual Install & Upgrade
@@ -67,7 +67,7 @@ case "${ARCH}" in
6767
*) XUI_ARCH="amd64" ;;
6868
esac
6969

70-
wget https://github.com/alireza0/x-ui/releases/latest/download/x-ui-linux-${XUI_ARCH}.tar.gz
70+
wget https://github.com/Enkidu-6/x-ui/releases/latest/download/x-ui-linux-${XUI_ARCH}.tar.gz
7171
```
7272

7373
2. Once the compressed package is downloaded, execute the following commands to install or upgrade x-ui:
@@ -111,7 +111,7 @@ curl -fsSL https://get.docker.com | sh
111111
**Step 2:** Clone the Project Repository:
112112

113113
```sh
114-
git clone https://github.com/alireza0/x-ui.git
114+
git clone https://github.com/Enkidu-6/x-ui.git
115115
cd x-ui
116116
```
117117

@@ -131,7 +131,7 @@ docker run -itd \
131131
-v $PWD/db/:/etc/x-ui/ \
132132
-v $PWD/cert/:/root/cert/ \
133133
--name x-ui --restart=unless-stopped \
134-
alireza7/x-ui:latest
134+
enkidu6/x-ui:latest
135135
```
136136

137137
update to latest version

docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
---
21

32
services:
43
xui:
5-
image: alireza7/x-ui
4+
image: enkidu6/x-ui
65
container_name: x-ui
76
hostname: yourhostname
87
volumes:

install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
red='\033[0;31m'
4-
green='\033[0;32m'
4+
green='\033[1;32m'
55
yellow='\033[0;33m'
66
plain='\033[0m'
77

@@ -211,20 +211,20 @@ install_x-ui() {
211211
cd /usr/local/
212212

213213
if [ $# == 0 ]; then
214-
last_version=$(curl -Ls "https://api.github.com/repos/alireza0/x-ui/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
214+
last_version=$(curl -Ls "https://api.github.com/repos/Enkidu-6/x-ui/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
215215
if [[ ! -n "$last_version" ]]; then
216216
echo -e "${red}Failed to fetch x-ui version, it maybe due to Github API restrictions, please try it later${plain}"
217217
exit 1
218218
fi
219219
echo -e "Got x-ui latest version: ${last_version}, beginning the installation..."
220-
wget -N --no-check-certificate -O /usr/local/x-ui-linux-$(arch).tar.gz https://github.com/alireza0/x-ui/releases/download/${last_version}/x-ui-linux-$(arch).tar.gz
220+
wget -N --no-check-certificate -O /usr/local/x-ui-linux-$(arch).tar.gz https://github.com/Enkidu-6/x-ui/releases/download/${last_version}/x-ui-linux-$(arch).tar.gz
221221
if [[ $? -ne 0 ]]; then
222222
echo -e "${red}Downloading x-ui failed, please be sure that your server can access Github ${plain}"
223223
exit 1
224224
fi
225225
else
226226
last_version=$1
227-
url="https://github.com/alireza0/x-ui/releases/download/${last_version}/x-ui-linux-$(arch).tar.gz"
227+
url="https://github.com/Enkidu-6/x-ui/releases/download/${last_version}/x-ui-linux-$(arch).tar.gz"
228228
echo -e "Beginning to install x-ui v$1"
229229
wget -N --no-check-certificate -O /usr/local/x-ui-linux-$(arch).tar.gz ${url}
230230
if [[ $? -ne 0 ]]; then
@@ -251,7 +251,7 @@ install_x-ui() {
251251
fi
252252
chmod +x x-ui bin/xray-linux-$(arch)
253253
cp -f x-ui.service /etc/systemd/system/
254-
wget --no-check-certificate -O /usr/bin/x-ui https://raw.githubusercontent.com/alireza0/x-ui/main/x-ui.sh
254+
wget --no-check-certificate -O /usr/bin/x-ui https://raw.githubusercontent.com/Enkidu-6/x-ui/main/x-ui.sh
255255
chmod +x /usr/local/x-ui/x-ui.sh
256256
chmod +x /usr/bin/x-ui
257257
config_after_install

web/assets/js/model/setting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class AllSetting {
3838
this.subJsonMux = "";
3939
this.subJsonRules = "";
4040

41-
this.timeLocation = "Asia/Tehran";
41+
this.timeLocation = "UTC";
4242

4343
if (data == null) {
4444
return

web/html/xui/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<a-col :sm="24" :md="12">
8686
<a-card hoverable>
8787
<strong>{{ i18n "pages.inbounds.stream.tcp.version" }}:</strong>
88-
<a href="https://github.com/alireza0/x-ui/releases" target="_blank">
88+
<a href="https://github.com/Enkidu-6/x-ui/releases" target="_blank">
8989
<a-tag color="purple" style="cursor: pointer;">X-UI {{ .cur_ver }}</a-tag>
9090
</a>
9191
<a-tooltip title='{{ i18n "pages.index.xraySwitch" }}'>

web/html/xui/settings.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -796,14 +796,6 @@
796796
var alerts = []
797797
if (window.location.protocol !== "https:") alerts.push('{{ i18n "secAlertSSL" }}');
798798
if (this.allSetting.webPort == 54321) alerts.push('{{ i18n "secAlertPanelPort" }}');
799-
panelPath = window.location.pathname.split('/').length < 4
800-
if (panelPath && this.allSetting.webBasePath == '/') alerts.push('{{ i18n "secAlertPanelURI" }}');
801-
if (this.allSetting.subEnable) {
802-
subPath = this.allSetting.subURI.length > 0 ? new URL(this.allSetting.subURI).pathname : this.allSetting.subPath;
803-
if (subPath == '/sub/') alerts.push('{{ i18n "secAlertSubURI" }}');
804-
subJsonPath = this.allSetting.subJsonURI.length > 0 ? new URL(this.allSetting.subJsonURI).pathname : this.allSetting.subJsonPath;
805-
if (subJsonPath == '/json/') alerts.push('{{ i18n "secAlertSubJsonURI" }}');
806-
}
807799
return alerts
808800
}
809801
}

web/service/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var defaultValueMap = map[string]string{
3636
"expireDiff": "0",
3737
"trafficDiff": "0",
3838
"remarkModel": "-ieo",
39-
"timeLocation": "Asia/Tehran",
39+
"timeLocation": "UTC",
4040
"tgBotEnable": "false",
4141
"tgBotToken": "",
4242
"tgBotChatId": "",

x-ui.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
red='\033[0;31m'
4-
green='\033[0;32m'
4+
green='\033[1;32m'
55
yellow='\033[0;33m'
66
plain='\033[0m'
77

@@ -134,7 +134,7 @@ before_show_menu() {
134134
}
135135

136136
install() {
137-
bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/main/install.sh)
137+
bash <(curl -Ls https://raw.githubusercontent.com/Enkidu-6/x-ui/main/install.sh)
138138
if [[ $? == 0 ]]; then
139139
if [[ $# == 0 ]]; then
140140
start
@@ -153,7 +153,7 @@ update() {
153153
fi
154154
return 0
155155
fi
156-
bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/main/install.sh)
156+
bash <(curl -Ls https://raw.githubusercontent.com/Enkidu-6/x-ui/main/install.sh)
157157
if [[ $? == 0 ]]; then
158158
LOGI "Update is complete, Panel has automatically restarted "
159159
exit 0
@@ -169,7 +169,7 @@ legacy_version() {
169169
exit 1
170170
fi
171171

172-
download_link="https://raw.githubusercontent.com/alireza0/x-ui/master/install.sh"
172+
download_link="https://raw.githubusercontent.com/Enkidu-6/x-ui/master/install.sh"
173173

174174
# Use the entered panel version in the download link
175175
install_command="bash <(curl -Ls $download_link) $panel_version"
@@ -202,7 +202,7 @@ uninstall() {
202202
echo -e "\nUninstalled Successfully."
203203
echo ""
204204
echo -e "If you need to install this panel again, you can use below command:"
205-
echo -e "${green}bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/master/install.sh)${plain}"
205+
echo -e "${green}bash <(curl -Ls https://raw.githubusercontent.com/Enkidu-6/x-ui/master/install.sh)${plain}"
206206
echo ""
207207
# Trap the SIGTERM signal
208208
trap delete_script SIGTERM
@@ -409,7 +409,7 @@ show_log() {
409409
}
410410

411411
update_shell() {
412-
wget -O /usr/bin/x-ui -N --no-check-certificate https://github.com/alireza0/x-ui/raw/main/x-ui.sh
412+
wget -O /usr/bin/x-ui -N --no-check-certificate https://github.com/Enkidu-6/x-ui/raw/main/x-ui.sh
413413
if [[ $? != 0 ]]; then
414414
echo ""
415415
LOGE "Failed to download script, Please check whether the machine can connect Github"

0 commit comments

Comments
 (0)