@@ -36,7 +36,8 @@ check_latest_sing-box() {
36
36
install () {
37
37
# 下载 sing-box
38
38
echo " 正在下载 sing-box ..."
39
- local ONLINE=$( check_latest_sing-box)
39
+ # ####local ONLINE=$(check_latest_sing-box)
40
+ local ONLINE=' 1.11.0-alpha.6'
40
41
wget https://github.com/SagerNet/sing-box/releases/download/v$ONLINE /sing-box-$ONLINE -linux-$SING_BOX_ARCH .tar.gz -O- | tar xz -C $WORK_DIR sing-box-$ONLINE -linux-$SING_BOX_ARCH /sing-box && mv $WORK_DIR /sing-box-$ONLINE -linux-$SING_BOX_ARCH /sing-box $WORK_DIR /sing-box && rm -rf $WORK_DIR /sing-box-$ONLINE -linux-$SING_BOX_ARCH
41
42
42
43
# 下载 jq
@@ -692,7 +693,8 @@ stdout_logfile=/dev/null
692
693
#include /etc/nginx/conf.d/*.conf;
693
694
694
695
server {
695
- listen 127.0.0.1:$START_PORT ssl http2; # sing-box backend
696
+ listen 127.0.0.1:$START_PORT ssl ; # sing-box backend
697
+ http2 on;
696
698
server_name addons.mozilla.org;
697
699
698
700
ssl_certificate $WORK_DIR /cert/cert.pem;
@@ -702,7 +704,7 @@ stdout_logfile=/dev/null
702
704
ssl_stapling off;
703
705
ssl_stapling_verify off;"
704
706
705
- [ " ${VMESS_WS } " = ' true' ] && NGINX_CONF+="
707
+ [ " ${VLESS_WS } " = ' true' ] && NGINX_CONF+="
706
708
# 反代 sing-box vless websocket
707
709
location /${UUID} -vless {
708
710
if (\$ http_upgrade != " websocket" ) {
@@ -718,7 +720,7 @@ stdout_logfile=/dev/null
718
720
proxy_redirect off;
719
721
}"
720
722
721
- [ " ${VLESS_WS } " = ' true' ] && NGINX_CONF+="
723
+ [ " ${VMESS_WS } " = ' true' ] && NGINX_CONF+="
722
724
# 反代 sing-box websocket
723
725
location /${UUID} -vmess {
724
726
if (\$ http_upgrade != " websocket" ) {
@@ -1154,7 +1156,8 @@ $($WORK_DIR/qrencode https://${ARGO_DOMAIN}/${UUID}/auto)
1154
1156
1155
1157
# Sing-box 的最新版本
1156
1158
update_sing-box () {
1157
- local ONLINE=$( check_latest_sing-box)
1159
+ # ####local ONLINE=$(check_latest_sing-box)
1160
+ local ONLINE=' 1.11.0-alpha.6'
1158
1161
local LOCAL=$( $WORK_DIR /sing-box version | awk ' /version/{print $NF}' )
1159
1162
if [ -n " $ONLINE " ]; then
1160
1163
if [[ " $ONLINE " != " $LOCAL " ]]; then
0 commit comments