Skip to content

Commit

Permalink
update:site_url rule change
Browse files Browse the repository at this point in the history
  • Loading branch information
everstu committed Nov 6, 2024
1 parent 41c4f5d commit faf4670
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
3 changes: 3 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
KoolCenter Alist Changelog for HND platform
===========================================
2.1.0
- update 配置site_url检测改为只提示错误,不阻止写入。

2.0.9
- update 更新alist二进制至v3.39.1

Expand Down
26 changes: 14 additions & 12 deletions alist/scripts/alist_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -334,23 +334,23 @@ makeConfig() {
if [ "${configHttps}" == "true" ]; then
echo_date "⚠️网站URL:${alist_site_url} 来自ddnsto!"
echo_date "⚠️你需要关闭alist的https,不然将导致无法访问面板!"
echo_date "⚠️本次插件启动不会将此网站URL写入配置,下次请更正,继续..."
dbus set alist_url_error=1
else
configSiteUrl=${alist_site_url}
#echo_date "⚠️本次插件启动不会将此网站URL写入配置,下次请更正,继续..."
#dbus set alist_url_error=1
#else
#configSiteUrl=${alist_site_url}
fi
else
# ddns,根据情况判断
if [ -n "${MATCH_3}" -a "${configHttps}" != "true" ]; then
echo_date "⚠️网站URL:${alist_site_url} 格式为https!"
echo_date "⚠️你需要启用alist的https功能,不然会导致面alist部分功能出现问题!"
echo_date "⚠️本次插件启动不会将此网站URL写入配置,下次请更正,继续..."
dbus set alist_url_error=1
#echo_date "⚠️本次插件启动不会将此网站URL写入配置,下次请更正,继续..."
#dbus set alist_url_error=1
elif [ -n "${MATCH_4}" -a "${configHttps}" == "true" ]; then
echo_date "⚠️网站URL:${alist_site_url} 格式为http!"
echo_date "⚠️你需要启用alist的https,或者更改网站URL为http协议,不然将导致无法访问面板!"
echo_date "⚠️本次插件启动不会将此网站URL写入配置,下次请更正,继续..."
dbus set alist_url_error=1
#echo_date "⚠️本次插件启动不会将此网站URL写入配置,下次请更正,继续..."
#dbus set alist_url_error=1
else
# 路由器中使用网站URL的话,还必须配置端口
if [ -n "${MATCH_3}" ]; then
Expand All @@ -363,13 +363,15 @@ makeConfig() {
if [ -z "${MATCH_5}" ]; then
echo_date "⚠️网站URL:${alist_site_url} 端口配置错误!"
echo_date "⚠️你需要为网站URL配置端口:${rightPort},不然会导致面alist部分功能出现问题!"
echo_date "⚠️本次插件启动不会将此网站URL写入配置,下次请更正,继续..."
dbus set alist_url_error=1
else
configSiteUrl=${alist_site_url}
#echo_date "⚠️本次插件启动不会将此网站URL写入配置,下次请更正,继续..."
#dbus set alist_url_error=1
#else
#configSiteUrl=${alist_site_url}
fi
fi
fi
# 只要网址正确就写入配置,只检测提示,不阻止写入。2024年11月6日修改
configSiteUrl=${alist_site_url}
fi
fi
else
Expand Down
2 changes: 1 addition & 1 deletion alist/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.9
2.1.0
4 changes: 2 additions & 2 deletions config.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"description": "Alist. 一个支持多种存储的文件列表程序,使用 Gin 和 Solidjs",
"home_url": "Module_alist.asp",
"link": "https://github.com/everstu/Koolcenter_alist",
"md5": "710747fb4e75d5f4b2961ca3ba74905f",
"md5": "a8b0b0fbcd806b79e5765a071c93b4d8",
"module": "alist",
"tags": "云同步",
"title": "Alist 文件列表",
"version": "2.0.9"
"version": "2.1.0"
}

0 comments on commit faf4670

Please sign in to comment.