Skip to content

Commit 5dae785

Browse files
authored
chore: X_UI_ENABLE_FAIL2BAN -> XUI_ENABLE_FAIL2BAN (#3030)
1 parent 1b1cbff commit 5dae785

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

DockerEntrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
# Start fail2ban
4-
[ $X_UI_ENABLE_FAIL2BAN == "true" ] && fail2ban-client -x start
4+
[ $XUI_ENABLE_FAIL2BAN == "true" ] && fail2ban-client -x start
55

66
# Run x-ui
77
exec /app/x-ui

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ RUN chmod +x \
4848
/app/x-ui \
4949
/usr/bin/x-ui
5050

51-
ENV X_UI_ENABLE_FAIL2BAN="true"
51+
ENV XUI_ENABLE_FAIL2BAN="true"
5252
VOLUME [ "/etc/x-ui" ]
5353
CMD [ "./x-ui" ]
5454
ENTRYPOINT [ "/app/DockerEntrypoint.sh" ]

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
- $PWD/cert/:/root/cert/
99
environment:
1010
XRAY_VMESS_AEAD_FORCED: "false"
11-
X_UI_ENABLE_FAIL2BAN: "true"
11+
XUI_ENABLE_FAIL2BAN: "true"
1212
tty: true
1313
network_mode: host
1414
restart: unless-stopped

0 commit comments

Comments
 (0)