Skip to content

Commit

Permalink
Update x-ui-pro.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
GFW4Fun authored Sep 2, 2024
1 parent 5d3299d commit 77ad028
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x-ui-pro.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
#################### x-ui-pro v2.3.7 @ github.com/GFW4Fun ##############################################
#################### x-ui-pro v2.3.8 @ github.com/GFW4Fun ##############################################
[[ $EUID -ne 0 ]] && echo "not root!" && sudo su -
##############################INFO######################################################################
msg_ok() { echo -e "\e[1;42m $1 \e[0m";}
Expand Down Expand Up @@ -147,7 +147,7 @@ server {
proxy_redirect off;
proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$client_real_ip;
proxy_set_header X-Forwarded-For \$http_x_forwarded_for;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:$PORT;
break;
}
Expand All @@ -157,7 +157,7 @@ server {
proxy_redirect off;
proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$client_real_ip;
proxy_set_header X-Forwarded-For \$http_x_forwarded_for;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:\$fwdport/sub/\$fwdpath\$is_args\$args;
break;
}
Expand All @@ -167,7 +167,7 @@ server {
proxy_redirect off;
proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$client_real_ip;
proxy_set_header X-Forwarded-For \$http_x_forwarded_for;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:\$fwdport/json/\$fwdpath\$is_args\$args;
break;
}
Expand All @@ -188,7 +188,7 @@ server {
proxy_set_header Connection "upgrade";
proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$client_real_ip;
proxy_set_header X-Forwarded-For \$http_x_forwarded_for;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header CF-IPCountry \$http_cf_ipcountry;
if (\$content_type ~* "GRPC") {
grpc_pass grpc://127.0.0.1:\$fwdport\$is_args\$args;
Expand Down

0 comments on commit 77ad028

Please sign in to comment.