1
1
#! /bin/bash
2
- # ################### x-ui-pro v9.5.4 @ github.com/GFW4Fun ##############################################
2
+ # ################### x-ui-pro v9.6.0 @ github.com/GFW4Fun ##############################################
3
3
[[ $EUID -ne 0 ]] && { echo " not root!" ; exec sudo " $0 " " $@ " ; }
4
4
# #############################INFO######################################################################
5
5
msg_ok () { echo -e " \e[1;42m $1 \e[0m" ; }
@@ -204,7 +204,7 @@ worker_processes auto;
204
204
pid /run/nginx.pid;
205
205
include /etc/nginx/modules-enabled/*.conf;
206
206
worker_rlimit_nofile 65535;
207
- events { worker_connections 65535; use epoll; }
207
+ events { worker_connections 65535; use epoll; multi_accept on; }
208
208
http {
209
209
access_log /var/log/nginx/access.log;
210
210
error_log /var/log/nginx/error.log;
@@ -283,7 +283,7 @@ if [[ -f $XUIDB ]]; then
283
283
else
284
284
PORT=" 2053"
285
285
RNDSTR=" /" ; NOPATH=" #" ;
286
- XUIUSER=" admin" ; XUIPASS=" admin" ;
286
+ XUIUSER=" admin" ; XUIPASS=" admin" ; t
287
287
fi
288
288
# ################################Nginx Config###########################################################
289
289
cat > " /etc/nginx/sites-available/$MainDomain " << EOF
@@ -294,7 +294,7 @@ server {
294
294
listen [::]:80;
295
295
listen 443 ssl${OLD_H2} ;
296
296
listen [::]:443 ssl${OLD_H2} ;
297
- ${NEW_H2} http2 on;
297
+ ${NEW_H2} http2 on; http3 on;
298
298
index index.html index.htm index.php index.nginx-debian.html;
299
299
root /var/www/html/;
300
300
ssl_protocols TLSv1.2 TLSv1.3;
@@ -341,7 +341,7 @@ server {
341
341
}
342
342
#Xray Config Path
343
343
location ~ ^/(?<fwdport>\d+)/(?<fwdpath>.*)\$ {
344
- $CF_IP if (\$ cloudflare_ip != 1) {return 404;}
344
+ $CF_IP if (\$ cloudflare_ip != 1) {return 404;}
345
345
if (\$ hack = 1) {return 404;}
346
346
client_max_body_size 0;
347
347
client_body_timeout 1d;
0 commit comments