Skip to content

Commit eec0f34

Browse files
authored
Update x-ui-pro.sh
1 parent 2a6bb65 commit eec0f34

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

x-ui-pro.sh

+4-5
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ server {
310310
proxy_intercept_errors on;
311311
#X-UI Admin Panel
312312
location $RNDSTR {
313-
auth_basic "Restricted Access";
314-
auth_basic_user_file /etc/nginx/.htpasswd;
313+
#auth_basic "Restricted Access";
314+
#auth_basic_user_file /etc/nginx/.htpasswd;
315315
proxy_redirect off;
316316
proxy_set_header Host \$host;
317317
proxy_set_header X-Real-IP \$remote_addr;
@@ -323,7 +323,6 @@ server {
323323
location /${RNDSTR2}/ {
324324
#auth_basic "Restricted Access";
325325
#auth_basic_user_file /etc/nginx/.htpasswd;
326-
#proxy_redirect off;
327326
proxy_set_header Host \$host;
328327
proxy_set_header X-Real-IP \$remote_addr;
329328
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
@@ -471,8 +470,8 @@ if systemctl is-active --quiet x-ui || [ -e /etc/systemd/system/x-ui.service ];
471470
#[[ -n $IP6 ]] && [[ "$IP6" =~ $IP6_REGEX ]] && msg_inf "IPv6: http://[$IP6]:$PORT$RNDSTR"
472471
msg_inf "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
473472
sudo sh -c "echo -n '${XUIUSER}:' >> /etc/nginx/.htpasswd && openssl passwd -apr1 '${XUIPASS}' >> /etc/nginx/.htpasswd"
474-
msg_inf "XrayUI <Double Login> https://${domain}${RNDSTR}"
475-
msg_inf "v2rayA <Double Login> https://${domain}/${RNDSTR2}/\n"
473+
msg_inf "XrayUI: https://${domain}${RNDSTR}"
474+
msg_inf "v2rayA: https://${domain}/${RNDSTR2}/\n"
476475
echo -e "Username: $XUIUSER\nPassword: $XUIPASS\n"
477476
msg_inf "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
478477
msg_ok "Note: Save This Screen!!"

0 commit comments

Comments
 (0)