We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c47771 commit a4c38ecCopy full SHA for a4c38ec
DockerEntrypoint.sh
@@ -1,7 +1,7 @@
1
#!/bin/sh
2
3
# Start fail2ban
4
-fail2ban-client -x start
+[ $X_UI_ENABLE_FAIL2BAN == "true" ] && fail2ban-client -x start
5
6
# Run x-ui
7
exec /app/x-ui
Dockerfile
@@ -48,6 +48,7 @@ RUN chmod +x \
48
/app/x-ui \
49
/usr/bin/x-ui
50
51
+ENV X_UI_ENABLE_FAIL2BAN="true"
52
VOLUME [ "/etc/x-ui" ]
53
CMD [ "./x-ui" ]
54
ENTRYPOINT [ "/app/DockerEntrypoint.sh" ]
docker-compose.yml
@@ -11,6 +11,7 @@ services:
11
- $PWD/cert/:/root/cert/
12
environment:
13
XRAY_VMESS_AEAD_FORCED: "false"
14
+ X_UI_ENABLE_FAIL2BAN: "true"
15
tty: true
16
network_mode: host
17
restart: unless-stopped
0 commit comments