Skip to content

Commit 2dc0776

Browse files
authored
Update x-ui-pro.sh
1 parent 275ffad commit 2dc0776

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

x-ui-pro.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
#################### x-ui-pro v9.5.4 @ github.com/GFW4Fun ##############################################
2+
#################### x-ui-pro v9.6.0 @ github.com/GFW4Fun ##############################################
33
[[ $EUID -ne 0 ]] && { echo "not root!"; exec sudo "$0" "$@"; }
44
##############################INFO######################################################################
55
msg_ok() { echo -e "\e[1;42m $1 \e[0m";}
@@ -204,7 +204,7 @@ worker_processes auto;
204204
pid /run/nginx.pid;
205205
include /etc/nginx/modules-enabled/*.conf;
206206
worker_rlimit_nofile 65535;
207-
events { worker_connections 65535; use epoll; }
207+
events { worker_connections 65535; use epoll; multi_accept on; }
208208
http {
209209
access_log /var/log/nginx/access.log;
210210
error_log /var/log/nginx/error.log;
@@ -283,7 +283,7 @@ if [[ -f $XUIDB ]]; then
283283
else
284284
PORT="2053"
285285
RNDSTR="/";NOPATH="#";
286-
XUIUSER="admin";XUIPASS="admin";
286+
XUIUSER="admin";XUIPASS="admin";t
287287
fi
288288
#################################Nginx Config###########################################################
289289
cat > "/etc/nginx/sites-available/$MainDomain" << EOF
@@ -294,7 +294,7 @@ server {
294294
listen [::]:80;
295295
listen 443 ssl${OLD_H2};
296296
listen [::]:443 ssl${OLD_H2};
297-
${NEW_H2}http2 on;
297+
${NEW_H2}http2 on; http3 on;
298298
index index.html index.htm index.php index.nginx-debian.html;
299299
root /var/www/html/;
300300
ssl_protocols TLSv1.2 TLSv1.3;
@@ -341,7 +341,7 @@ server {
341341
}
342342
#Xray Config Path
343343
location ~ ^/(?<fwdport>\d+)/(?<fwdpath>.*)\$ {
344-
$CF_IP if (\$cloudflare_ip != 1) {return 404;}
344+
$CF_IP if (\$cloudflare_ip != 1) {return 404;}
345345
if (\$hack = 1) {return 404;}
346346
client_max_body_size 0;
347347
client_body_timeout 1d;

0 commit comments

Comments
 (0)