├── .gitignore ├── Changelog.txt ├── LICENSE ├── LICENSE_ALIST ├── README.md ├── alist ├── .valid ├── bin │ └── alist ├── install.sh ├── res │ └── icon-alist.png ├── scripts │ └── alist_config.sh ├── uninstall.sh ├── version └── webs │ └── Module_alist.asp ├── build.py └── config.json.js /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.tar.gz 3 | -------------------------------------------------------------------------------- /Changelog.txt: -------------------------------------------------------------------------------- 1 | KoolCenter Alist Changelog for HND platform 2 | =========================================== 3 | 2.2.9 4 | - update 更新alist二进制至v3.45.0 5 | 6 | 2.2.8 7 | - update 更新alist二进制至v3.44.0 8 | 9 | 2.2.7 10 | - update 更新alist二进制至v3.43.0(fix:115网盘错误 Add:115开放平台) 11 | 12 | 2.2.6 13 | - update fix alist process start failed in some newer model 14 | 15 | 2.2.5 16 | - update 更新alist二进制至v3.42.0 17 | 18 | 2.2.4 19 | - fix 首次安装密码显示两个密码的问题 20 | 21 | 2.2.3 22 | - fix 首次安装密码显示错误的问题 23 | - log 优化日志显示 24 | 25 | 2.2.2 26 | - fix 首次安装不显示初始化密码的问题 27 | 28 | 2.2.1 29 | - fix fix web loading error on 3006.102 fw 30 | 31 | 2.2.0 32 | - update 更新alist二进制至v3.41.0 33 | - notice 本次建议更新,本次修复了115网盘无法正常使用的问题。 34 | 35 | 2.1.2 36 | - update 更新alist二进制至v3.40.0 37 | 38 | 2.1.1 39 | - update 更新alist二进制至v3.39.4 40 | 41 | 2.1.0 42 | - update 配置site_url检测改为只提示错误,不阻止写入。 43 | 44 | 2.0.9 45 | - update 更新alist二进制至v3.39.1 46 | 47 | 2.0.8 48 | - update 更新alist二进制至v3.38.0 49 | 50 | 2.0.7 51 | - update 更新alist二进制至v3.37.4 52 | 53 | 2.0.6 54 | - update 更新alist二进制至v3.37.3 55 | 56 | 2.0.5 57 | - fix 修复web排版 58 | 59 | 2.0.4 60 | - update 适配102固件 61 | 62 | 2.0.3 63 | - fix 部分低内核路由器机型上使用临时目录模式无法正常使用的问题 64 | 65 | 2.0.2 66 | - update 更新alist二进制至v3.36.0 67 | 68 | 2.0.1 69 | - update 更新alist二进制至v3.35.0 70 | 71 | 2.0.0 72 | - fix 优化面板地址获取逻辑(优先使用site_url设置,其次是ddnsto相关域名,最后获访问域名) 73 | - fix 修复重置密码可能需要手动重启的问题。 74 | 75 | 1.9.8 76 | - update 更新alist二进制至v3.34.0 77 | 78 | 1.9.7 79 | - update 更新alist二进制至v3.33.0 80 | 81 | 1.9.6 82 | - update 更新alist二进制至v3.32.0 83 | 84 | 1.9.5 85 | - update 更新alist二进制至v3.31.0 86 | 87 | 1.9.4 88 | - update 更新alist二进制至v3.30.0 89 | 90 | 1.9.3 91 | - fix 版本未自动更新的问题 92 | 93 | 1.9.2 94 | - update 更新alist二进制至v3.29.1 95 | 96 | 1.9.1 97 | - update 更新alist二进制至v3.28.0 98 | 99 | 1.9 100 | - add 去掉ax32机型限制(二进制采用armv7l upx --lzma --best 压缩) 101 | - add 增加是否开放公网端口选项 102 | 103 | 1.8.9 104 | - update 更新alist二进制至v3.27.0 105 | 106 | 1.8.8 107 | - fix 修复防火墙端口未正确开启的问题。 108 | - update 更新alist二进制至v3.26.0 109 | 110 | 1.8.7 111 | - fix 修复无法获取管理员密码的问题 112 | - add 增加ipv6支持,自动同步开启ipv6防火墙端口。 113 | 114 | 1.8.6 115 | - update 更新alist二进制至v3.25.1 116 | 117 | 1.8.5 118 | - update 更新alist二进制至v3.24.0 119 | 120 | 1.8.4 121 | - update 更新alist二进制至v3.23.0 122 | 123 | 1.8.3 124 | - update 更新alist二进制至v3.22.1 125 | 126 | 1.8.2 127 | - update 更新alist二进制至v3.21.0 128 | 129 | 1.8.1 130 | - fix 修复https参数导致的无法启动问题 131 | 132 | 1.8 133 | - update 更新alist二进制至v3.20.1版本 134 | - fix 修复https端口问题 135 | - fix 修复一些已知BUG 136 | 137 | 1.7.5 138 | - update 增加alist延迟加载网盘时间设置 139 | - update 增加是否校验ssl证书选项 140 | - fix web页面细节优化 141 | 142 | 1.7.4 143 | - update 插件增加新特性允许http和https服务共存 144 | - update 增加官方https相关新配置项设置 145 | 146 | 1.7.3 147 | - update 同步alist官方二进制v3.19.0 148 | - fix 修复阿里云盘的授权地址问题 149 | - fix 修复139和189pc问题 150 | 151 | 1.7.2 152 | - add 增加max_connections最大连接数配置项 153 | 154 | 1.7.1 155 | - update 同步alist官方二进制v3.18.0 156 | 157 | 1.7 158 | - update 同步alist官方二进制v3.17.0 159 | 160 | 1.6.8 161 | - update 同步alist官方二进制v3.16.3 162 | 163 | 1.6.7 164 | - update 同步alist官方二进制v3.16.1 165 | 166 | 1.6.6 167 | - update 同步alist官方二进制v3.16.0 168 | - fix 修复脚本自启后,插件日志无关闭按钮的问题 169 | 170 | 1.6.5 171 | - update 同步alist官方二进制v3.15.1 172 | 173 | 1.6.4 174 | - update 同步alist官方二进制v3.15.0 175 | - fix 修复115网盘驱动的一些问题。 176 | 177 | 1.6.3 178 | - update 同步alist官方二进制v3.14.0 179 | 180 | 1.6.2 181 | - update 同步alist官方二进制v3.12.2 182 | - fix 修复阿里云盘open驱动的一些问题。 183 | 184 | 1.6.1 185 | - update 同步alist官方二进制v3.12.1 186 | - fix 修复阿里云盘open驱动的一些问题。 187 | - update 系统检测增加已开启插件检测 188 | 189 | 1.6 190 | - update 同步alist官方二进制v3.12.0 191 | - update 官方二进制新增阿里云盘挂载方式,修复阿里云盘挂载BUG。 192 | 193 | 1.5.4 194 | - update 由于大多用户反馈的不想开启内存检测,增加系统检测开关按钮。 195 | 196 | 1.5.3 197 | - fix 修复填写site_url的情况下,面板域名获取错误的问题 198 | 199 | 1.5.2 200 | - update 优化Alist在特定机型或安装挂载usb2jffs,无需在/tmp目录下 201 | 202 | 1.5.1 203 | - fix wan重启后端口偶发未开启的问题 204 | - update 更新alist二进制版本到v3.11.0 205 | - fix 上游二进制更新修复阿里云无法正常使用的问题 206 | 207 | 1.5 208 | - fix 修复分区格式为jffs机型路由器只能在/tmp目录运行的问题 感谢TG网友:尤利乌斯(@chuzhongzai)的热心测试!! 209 | - fix 开机自启增加20秒启动延迟,防止虚拟内存未挂载导致部分机型不启动 210 | - update 更新alist二进制版本到v3.10.1 211 | 212 | 1.4.2 213 | - fix 回退alist二进制版本到v3.8.0,v3.9.2二进制兼有容性问题 214 | 215 | 1.4.1 216 | - update 更新alist二进制版本到v3.9.2 217 | - fix 修复迁移bug,去掉v2升级v3迁移备份处理 218 | 219 | 1.4 220 | - update 更新alist二进制版本到v3.6.0 221 | 222 | 1.3 223 | - fix 修复安装脚本默认参数设置问题 224 | - fix 修复防火墙重启alist端口未开启的问题 225 | 226 | 1.2 227 | - fix 修复安装脚本报错的问题 228 | - add 新增路由器内存检测,防止内存不足杀进程 229 | 230 | 1.1 231 | - fix 修复web的一个小问题 232 | 233 | 1.0 234 | - note Alist插件上线软件中心,版本号从1.0开始 235 | 1. 软件中心的alist程序版本从V3开始。 236 | 2. 正在使用V2 alist的,建议卸载后安装 237 | 3. 由于alist需要路由器较好性能,本插件目前仅支持hnd机型中的armv8机型! 238 | - update 更新alist二进制至v3.5.1版本(arm64版本,采用upx --best压缩) 239 | - update 重写了alist插件的web,界面更简洁直观 240 | - update 看门狗升级为perp实时进程守护 241 | - update 重新优化了下插件脚本逻辑 242 | - update 现在密码默认隐藏,点击查看 243 | - add 新增了帮助界面,鼠标移动到左侧栏文字即可见 244 | - add 新增alist运行日志功能,可以方便查看当前进程日志 245 | - add 新增alist插件日志 246 | 247 | 0.6 248 | - add 增加二进制在线更新功能 249 | - update 更新alist二进制至v3.4.0版本 250 | - note 从v2版本升级会备份数据库 251 | - note 不兼容插件v0.5,二进制V3.0.0及以下版本,请勿降级使用 252 | 253 | 0.5 254 | - add 增加看门狗启动程序后日志输出 255 | - update 优化公网访问ipt写入删除逻辑 256 | - add 增加在线更新版本功能提示信息 257 | - fix 修复脚本的一些bug 258 | - update alist二进制更新至2.6.4 259 | 260 | 0.4 261 | - update 优化二进制和web版本信息获取速度 262 | - fix 修复因饿了么CDN失效导致后台白屏的问题 263 | - update 修改默认静态资源位置为本地资源 264 | 265 | 0.3 266 | - fix 增加看门狗功能 267 | - fix 修复启动后端口面板错误的问题 268 | - add 增加开机自启系统日志输出 269 | - update 优化手动覆盖安装后保留自定义设置 270 | - update 更新alist二进制至v2.6.3 271 | - add 增加alist二进制和web页面版本展示 272 | 273 | 0.2 274 | - fix 修复https证书无法设置问题 275 | - add 增加自动更新插件功能 276 | 277 | 0.1 278 | - add 支持开启https 279 | - add 支持开启公网访问 280 | - add 支持ax6000官改rog皮肤 281 | - add 支持启动配置 282 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 everstu 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LICENSE_ALIST: -------------------------------------------------------------------------------- 1 | GNU AFFERO GENERAL PUBLIC LICENSE 2 | Version 3, 19 November 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU Affero General Public License is a free, copyleft license for 11 | software and other kinds of works, specifically designed to ensure 12 | cooperation with the community in the case of network server software. 13 | 14 | The licenses for most software and other practical works are designed 15 | to take away your freedom to share and change the works. By contrast, 16 | our General Public Licenses are intended to guarantee your freedom to 17 | share and change all versions of a program--to make sure it remains free 18 | software for all its users. 19 | 20 | When we speak of free software, we are referring to freedom, not 21 | price. Our General Public Licenses are designed to make sure that you 22 | have the freedom to distribute copies of free software (and charge for 23 | them if you wish), that you receive source code or can get it if you 24 | want it, that you can change the software or use pieces of it in new 25 | free programs, and that you know you can do these things. 26 | 27 | Developers that use our General Public Licenses protect your rights 28 | with two steps: (1) assert copyright on the software, and (2) offer 29 | you this License which gives you legal permission to copy, distribute 30 | and/or modify the software. 31 | 32 | A secondary benefit of defending all users' freedom is that 33 | improvements made in alternate versions of the program, if they 34 | receive widespread use, become available for other developers to 35 | incorporate. Many developers of free software are heartened and 36 | encouraged by the resulting cooperation. However, in the case of 37 | software used on network servers, this result may fail to come about. 38 | The GNU General Public License permits making a modified version and 39 | letting the public access it on a server without ever releasing its 40 | source code to the public. 41 | 42 | The GNU Affero General Public License is designed specifically to 43 | ensure that, in such cases, the modified source code becomes available 44 | to the community. It requires the operator of a network server to 45 | provide the source code of the modified version running there to the 46 | users of that server. Therefore, public use of a modified version, on 47 | a publicly accessible server, gives the public access to the source 48 | code of the modified version. 49 | 50 | An older license, called the Affero General Public License and 51 | published by Affero, was designed to accomplish similar goals. This is 52 | a different license, not a version of the Affero GPL, but Affero has 53 | released a new version of the Affero GPL which permits relicensing under 54 | this license. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | TERMS AND CONDITIONS 60 | 61 | 0. Definitions. 62 | 63 | "This License" refers to version 3 of the GNU Affero General Public License. 64 | 65 | "Copyright" also means copyright-like laws that apply to other kinds of 66 | works, such as semiconductor masks. 67 | 68 | "The Program" refers to any copyrightable work licensed under this 69 | License. Each licensee is addressed as "you". "Licensees" and 70 | "recipients" may be individuals or organizations. 71 | 72 | To "modify" a work means to copy from or adapt all or part of the work 73 | in a fashion requiring copyright permission, other than the making of an 74 | exact copy. The resulting work is called a "modified version" of the 75 | earlier work or a work "based on" the earlier work. 76 | 77 | A "covered work" means either the unmodified Program or a work based 78 | on the Program. 79 | 80 | To "propagate" a work means to do anything with it that, without 81 | permission, would make you directly or secondarily liable for 82 | infringement under applicable copyright law, except executing it on a 83 | computer or modifying a private copy. Propagation includes copying, 84 | distribution (with or without modification), making available to the 85 | public, and in some countries other activities as well. 86 | 87 | To "convey" a work means any kind of propagation that enables other 88 | parties to make or receive copies. Mere interaction with a user through 89 | a computer network, with no transfer of a copy, is not conveying. 90 | 91 | An interactive user interface displays "Appropriate Legal Notices" 92 | to the extent that it includes a convenient and prominently visible 93 | feature that (1) displays an appropriate copyright notice, and (2) 94 | tells the user that there is no warranty for the work (except to the 95 | extent that warranties are provided), that licensees may convey the 96 | work under this License, and how to view a copy of this License. If 97 | the interface presents a list of user commands or options, such as a 98 | menu, a prominent item in the list meets this criterion. 99 | 100 | 1. Source Code. 101 | 102 | The "source code" for a work means the preferred form of the work 103 | for making modifications to it. "Object code" means any non-source 104 | form of a work. 105 | 106 | A "Standard Interface" means an interface that either is an official 107 | standard defined by a recognized standards body, or, in the case of 108 | interfaces specified for a particular programming language, one that 109 | is widely used among developers working in that language. 110 | 111 | The "System Libraries" of an executable work include anything, other 112 | than the work as a whole, that (a) is included in the normal form of 113 | packaging a Major Component, but which is not part of that Major 114 | Component, and (b) serves only to enable use of the work with that 115 | Major Component, or to implement a Standard Interface for which an 116 | implementation is available to the public in source code form. A 117 | "Major Component", in this context, means a major essential component 118 | (kernel, window system, and so on) of the specific operating system 119 | (if any) on which the executable work runs, or a compiler used to 120 | produce the work, or an object code interpreter used to run it. 121 | 122 | The "Corresponding Source" for a work in object code form means all 123 | the source code needed to generate, install, and (for an executable 124 | work) run the object code and to modify the work, including scripts to 125 | control those activities. However, it does not include the work's 126 | System Libraries, or general-purpose tools or generally available free 127 | programs which are used unmodified in performing those activities but 128 | which are not part of the work. For example, Corresponding Source 129 | includes interface definition files associated with source files for 130 | the work, and the source code for shared libraries and dynamically 131 | linked subprograms that the work is specifically designed to require, 132 | such as by intimate data communication or control flow between those 133 | subprograms and other parts of the work. 134 | 135 | The Corresponding Source need not include anything that users 136 | can regenerate automatically from other parts of the Corresponding 137 | Source. 138 | 139 | The Corresponding Source for a work in source code form is that 140 | same work. 141 | 142 | 2. Basic Permissions. 143 | 144 | All rights granted under this License are granted for the term of 145 | copyright on the Program, and are irrevocable provided the stated 146 | conditions are met. This License explicitly affirms your unlimited 147 | permission to run the unmodified Program. The output from running a 148 | covered work is covered by this License only if the output, given its 149 | content, constitutes a covered work. This License acknowledges your 150 | rights of fair use or other equivalent, as provided by copyright law. 151 | 152 | You may make, run and propagate covered works that you do not 153 | convey, without conditions so long as your license otherwise remains 154 | in force. You may convey covered works to others for the sole purpose 155 | of having them make modifications exclusively for you, or provide you 156 | with facilities for running those works, provided that you comply with 157 | the terms of this License in conveying all material for which you do 158 | not control copyright. Those thus making or running the covered works 159 | for you must do so exclusively on your behalf, under your direction 160 | and control, on terms that prohibit them from making any copies of 161 | your copyrighted material outside their relationship with you. 162 | 163 | Conveying under any other circumstances is permitted solely under 164 | the conditions stated below. Sublicensing is not allowed; section 10 165 | makes it unnecessary. 166 | 167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 168 | 169 | No covered work shall be deemed part of an effective technological 170 | measure under any applicable law fulfilling obligations under article 171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 172 | similar laws prohibiting or restricting circumvention of such 173 | measures. 174 | 175 | When you convey a covered work, you waive any legal power to forbid 176 | circumvention of technological measures to the extent such circumvention 177 | is effected by exercising rights under this License with respect to 178 | the covered work, and you disclaim any intention to limit operation or 179 | modification of the work as a means of enforcing, against the work's 180 | users, your or third parties' legal rights to forbid circumvention of 181 | technological measures. 182 | 183 | 4. Conveying Verbatim Copies. 184 | 185 | You may convey verbatim copies of the Program's source code as you 186 | receive it, in any medium, provided that you conspicuously and 187 | appropriately publish on each copy an appropriate copyright notice; 188 | keep intact all notices stating that this License and any 189 | non-permissive terms added in accord with section 7 apply to the code; 190 | keep intact all notices of the absence of any warranty; and give all 191 | recipients a copy of this License along with the Program. 192 | 193 | You may charge any price or no price for each copy that you convey, 194 | and you may offer support or warranty protection for a fee. 195 | 196 | 5. Conveying Modified Source Versions. 197 | 198 | You may convey a work based on the Program, or the modifications to 199 | produce it from the Program, in the form of source code under the 200 | terms of section 4, provided that you also meet all of these conditions: 201 | 202 | a) The work must carry prominent notices stating that you modified 203 | it, and giving a relevant date. 204 | 205 | b) The work must carry prominent notices stating that it is 206 | released under this License and any conditions added under section 207 | 7. This requirement modifies the requirement in section 4 to 208 | "keep intact all notices". 209 | 210 | c) You must license the entire work, as a whole, under this 211 | License to anyone who comes into possession of a copy. This 212 | License will therefore apply, along with any applicable section 7 213 | additional terms, to the whole of the work, and all its parts, 214 | regardless of how they are packaged. This License gives no 215 | permission to license the work in any other way, but it does not 216 | invalidate such permission if you have separately received it. 217 | 218 | d) If the work has interactive user interfaces, each must display 219 | Appropriate Legal Notices; however, if the Program has interactive 220 | interfaces that do not display Appropriate Legal Notices, your 221 | work need not make them do so. 222 | 223 | A compilation of a covered work with other separate and independent 224 | works, which are not by their nature extensions of the covered work, 225 | and which are not combined with it such as to form a larger program, 226 | in or on a volume of a storage or distribution medium, is called an 227 | "aggregate" if the compilation and its resulting copyright are not 228 | used to limit the access or legal rights of the compilation's users 229 | beyond what the individual works permit. Inclusion of a covered work 230 | in an aggregate does not cause this License to apply to the other 231 | parts of the aggregate. 232 | 233 | 6. Conveying Non-Source Forms. 234 | 235 | You may convey a covered work in object code form under the terms 236 | of sections 4 and 5, provided that you also convey the 237 | machine-readable Corresponding Source under the terms of this License, 238 | in one of these ways: 239 | 240 | a) Convey the object code in, or embodied in, a physical product 241 | (including a physical distribution medium), accompanied by the 242 | Corresponding Source fixed on a durable physical medium 243 | customarily used for software interchange. 244 | 245 | b) Convey the object code in, or embodied in, a physical product 246 | (including a physical distribution medium), accompanied by a 247 | written offer, valid for at least three years and valid for as 248 | long as you offer spare parts or customer support for that product 249 | model, to give anyone who possesses the object code either (1) a 250 | copy of the Corresponding Source for all the software in the 251 | product that is covered by this License, on a durable physical 252 | medium customarily used for software interchange, for a price no 253 | more than your reasonable cost of physically performing this 254 | conveying of source, or (2) access to copy the 255 | Corresponding Source from a network server at no charge. 256 | 257 | c) Convey individual copies of the object code with a copy of the 258 | written offer to provide the Corresponding Source. This 259 | alternative is allowed only occasionally and noncommercially, and 260 | only if you received the object code with such an offer, in accord 261 | with subsection 6b. 262 | 263 | d) Convey the object code by offering access from a designated 264 | place (gratis or for a charge), and offer equivalent access to the 265 | Corresponding Source in the same way through the same place at no 266 | further charge. You need not require recipients to copy the 267 | Corresponding Source along with the object code. If the place to 268 | copy the object code is a network server, the Corresponding Source 269 | may be on a different server (operated by you or a third party) 270 | that supports equivalent copying facilities, provided you maintain 271 | clear directions next to the object code saying where to find the 272 | Corresponding Source. Regardless of what server hosts the 273 | Corresponding Source, you remain obligated to ensure that it is 274 | available for as long as needed to satisfy these requirements. 275 | 276 | e) Convey the object code using peer-to-peer transmission, provided 277 | you inform other peers where the object code and Corresponding 278 | Source of the work are being offered to the general public at no 279 | charge under subsection 6d. 280 | 281 | A separable portion of the object code, whose source code is excluded 282 | from the Corresponding Source as a System Library, need not be 283 | included in conveying the object code work. 284 | 285 | A "User Product" is either (1) a "consumer product", which means any 286 | tangible personal property which is normally used for personal, family, 287 | or household purposes, or (2) anything designed or sold for incorporation 288 | into a dwelling. In determining whether a product is a consumer product, 289 | doubtful cases shall be resolved in favor of coverage. For a particular 290 | product received by a particular user, "normally used" refers to a 291 | typical or common use of that class of product, regardless of the status 292 | of the particular user or of the way in which the particular user 293 | actually uses, or expects or is expected to use, the product. A product 294 | is a consumer product regardless of whether the product has substantial 295 | commercial, industrial or non-consumer uses, unless such uses represent 296 | the only significant mode of use of the product. 297 | 298 | "Installation Information" for a User Product means any methods, 299 | procedures, authorization keys, or other information required to install 300 | and execute modified versions of a covered work in that User Product from 301 | a modified version of its Corresponding Source. The information must 302 | suffice to ensure that the continued functioning of the modified object 303 | code is in no case prevented or interfered with solely because 304 | modification has been made. 305 | 306 | If you convey an object code work under this section in, or with, or 307 | specifically for use in, a User Product, and the conveying occurs as 308 | part of a transaction in which the right of possession and use of the 309 | User Product is transferred to the recipient in perpetuity or for a 310 | fixed term (regardless of how the transaction is characterized), the 311 | Corresponding Source conveyed under this section must be accompanied 312 | by the Installation Information. But this requirement does not apply 313 | if neither you nor any third party retains the ability to install 314 | modified object code on the User Product (for example, the work has 315 | been installed in ROM). 316 | 317 | The requirement to provide Installation Information does not include a 318 | requirement to continue to provide support service, warranty, or updates 319 | for a work that has been modified or installed by the recipient, or for 320 | the User Product in which it has been modified or installed. Access to a 321 | network may be denied when the modification itself materially and 322 | adversely affects the operation of the network or violates the rules and 323 | protocols for communication across the network. 324 | 325 | Corresponding Source conveyed, and Installation Information provided, 326 | in accord with this section must be in a format that is publicly 327 | documented (and with an implementation available to the public in 328 | source code form), and must require no special password or key for 329 | unpacking, reading or copying. 330 | 331 | 7. Additional Terms. 332 | 333 | "Additional permissions" are terms that supplement the terms of this 334 | License by making exceptions from one or more of its conditions. 335 | Additional permissions that are applicable to the entire Program shall 336 | be treated as though they were included in this License, to the extent 337 | that they are valid under applicable law. If additional permissions 338 | apply only to part of the Program, that part may be used separately 339 | under those permissions, but the entire Program remains governed by 340 | this License without regard to the additional permissions. 341 | 342 | When you convey a copy of a covered work, you may at your option 343 | remove any additional permissions from that copy, or from any part of 344 | it. (Additional permissions may be written to require their own 345 | removal in certain cases when you modify the work.) You may place 346 | additional permissions on material, added by you to a covered work, 347 | for which you have or can give appropriate copyright permission. 348 | 349 | Notwithstanding any other provision of this License, for material you 350 | add to a covered work, you may (if authorized by the copyright holders of 351 | that material) supplement the terms of this License with terms: 352 | 353 | a) Disclaiming warranty or limiting liability differently from the 354 | terms of sections 15 and 16 of this License; or 355 | 356 | b) Requiring preservation of specified reasonable legal notices or 357 | author attributions in that material or in the Appropriate Legal 358 | Notices displayed by works containing it; or 359 | 360 | c) Prohibiting misrepresentation of the origin of that material, or 361 | requiring that modified versions of such material be marked in 362 | reasonable ways as different from the original version; or 363 | 364 | d) Limiting the use for publicity purposes of names of licensors or 365 | authors of the material; or 366 | 367 | e) Declining to grant rights under trademark law for use of some 368 | trade names, trademarks, or service marks; or 369 | 370 | f) Requiring indemnification of licensors and authors of that 371 | material by anyone who conveys the material (or modified versions of 372 | it) with contractual assumptions of liability to the recipient, for 373 | any liability that these contractual assumptions directly impose on 374 | those licensors and authors. 375 | 376 | All other non-permissive additional terms are considered "further 377 | restrictions" within the meaning of section 10. If the Program as you 378 | received it, or any part of it, contains a notice stating that it is 379 | governed by this License along with a term that is a further 380 | restriction, you may remove that term. If a license document contains 381 | a further restriction but permits relicensing or conveying under this 382 | License, you may add to a covered work material governed by the terms 383 | of that license document, provided that the further restriction does 384 | not survive such relicensing or conveying. 385 | 386 | If you add terms to a covered work in accord with this section, you 387 | must place, in the relevant source files, a statement of the 388 | additional terms that apply to those files, or a notice indicating 389 | where to find the applicable terms. 390 | 391 | Additional terms, permissive or non-permissive, may be stated in the 392 | form of a separately written license, or stated as exceptions; 393 | the above requirements apply either way. 394 | 395 | 8. Termination. 396 | 397 | You may not propagate or modify a covered work except as expressly 398 | provided under this License. Any attempt otherwise to propagate or 399 | modify it is void, and will automatically terminate your rights under 400 | this License (including any patent licenses granted under the third 401 | paragraph of section 11). 402 | 403 | However, if you cease all violation of this License, then your 404 | license from a particular copyright holder is reinstated (a) 405 | provisionally, unless and until the copyright holder explicitly and 406 | finally terminates your license, and (b) permanently, if the copyright 407 | holder fails to notify you of the violation by some reasonable means 408 | prior to 60 days after the cessation. 409 | 410 | Moreover, your license from a particular copyright holder is 411 | reinstated permanently if the copyright holder notifies you of the 412 | violation by some reasonable means, this is the first time you have 413 | received notice of violation of this License (for any work) from that 414 | copyright holder, and you cure the violation prior to 30 days after 415 | your receipt of the notice. 416 | 417 | Termination of your rights under this section does not terminate the 418 | licenses of parties who have received copies or rights from you under 419 | this License. If your rights have been terminated and not permanently 420 | reinstated, you do not qualify to receive new licenses for the same 421 | material under section 10. 422 | 423 | 9. Acceptance Not Required for Having Copies. 424 | 425 | You are not required to accept this License in order to receive or 426 | run a copy of the Program. Ancillary propagation of a covered work 427 | occurring solely as a consequence of using peer-to-peer transmission 428 | to receive a copy likewise does not require acceptance. However, 429 | nothing other than this License grants you permission to propagate or 430 | modify any covered work. These actions infringe copyright if you do 431 | not accept this License. Therefore, by modifying or propagating a 432 | covered work, you indicate your acceptance of this License to do so. 433 | 434 | 10. Automatic Licensing of Downstream Recipients. 435 | 436 | Each time you convey a covered work, the recipient automatically 437 | receives a license from the original licensors, to run, modify and 438 | propagate that work, subject to this License. You are not responsible 439 | for enforcing compliance by third parties with this License. 440 | 441 | An "entity transaction" is a transaction transferring control of an 442 | organization, or substantially all assets of one, or subdividing an 443 | organization, or merging organizations. If propagation of a covered 444 | work results from an entity transaction, each party to that 445 | transaction who receives a copy of the work also receives whatever 446 | licenses to the work the party's predecessor in interest had or could 447 | give under the previous paragraph, plus a right to possession of the 448 | Corresponding Source of the work from the predecessor in interest, if 449 | the predecessor has it or can get it with reasonable efforts. 450 | 451 | You may not impose any further restrictions on the exercise of the 452 | rights granted or affirmed under this License. For example, you may 453 | not impose a license fee, royalty, or other charge for exercise of 454 | rights granted under this License, and you may not initiate litigation 455 | (including a cross-claim or counterclaim in a lawsuit) alleging that 456 | any patent claim is infringed by making, using, selling, offering for 457 | sale, or importing the Program or any portion of it. 458 | 459 | 11. Patents. 460 | 461 | A "contributor" is a copyright holder who authorizes use under this 462 | License of the Program or a work on which the Program is based. The 463 | work thus licensed is called the contributor's "contributor version". 464 | 465 | A contributor's "essential patent claims" are all patent claims 466 | owned or controlled by the contributor, whether already acquired or 467 | hereafter acquired, that would be infringed by some manner, permitted 468 | by this License, of making, using, or selling its contributor version, 469 | but do not include claims that would be infringed only as a 470 | consequence of further modification of the contributor version. For 471 | purposes of this definition, "control" includes the right to grant 472 | patent sublicenses in a manner consistent with the requirements of 473 | this License. 474 | 475 | Each contributor grants you a non-exclusive, worldwide, royalty-free 476 | patent license under the contributor's essential patent claims, to 477 | make, use, sell, offer for sale, import and otherwise run, modify and 478 | propagate the contents of its contributor version. 479 | 480 | In the following three paragraphs, a "patent license" is any express 481 | agreement or commitment, however denominated, not to enforce a patent 482 | (such as an express permission to practice a patent or covenant not to 483 | sue for patent infringement). To "grant" such a patent license to a 484 | party means to make such an agreement or commitment not to enforce a 485 | patent against the party. 486 | 487 | If you convey a covered work, knowingly relying on a patent license, 488 | and the Corresponding Source of the work is not available for anyone 489 | to copy, free of charge and under the terms of this License, through a 490 | publicly available network server or other readily accessible means, 491 | then you must either (1) cause the Corresponding Source to be so 492 | available, or (2) arrange to deprive yourself of the benefit of the 493 | patent license for this particular work, or (3) arrange, in a manner 494 | consistent with the requirements of this License, to extend the patent 495 | license to downstream recipients. "Knowingly relying" means you have 496 | actual knowledge that, but for the patent license, your conveying the 497 | covered work in a country, or your recipient's use of the covered work 498 | in a country, would infringe one or more identifiable patents in that 499 | country that you have reason to believe are valid. 500 | 501 | If, pursuant to or in connection with a single transaction or 502 | arrangement, you convey, or propagate by procuring conveyance of, a 503 | covered work, and grant a patent license to some of the parties 504 | receiving the covered work authorizing them to use, propagate, modify 505 | or convey a specific copy of the covered work, then the patent license 506 | you grant is automatically extended to all recipients of the covered 507 | work and works based on it. 508 | 509 | A patent license is "discriminatory" if it does not include within 510 | the scope of its coverage, prohibits the exercise of, or is 511 | conditioned on the non-exercise of one or more of the rights that are 512 | specifically granted under this License. You may not convey a covered 513 | work if you are a party to an arrangement with a third party that is 514 | in the business of distributing software, under which you make payment 515 | to the third party based on the extent of your activity of conveying 516 | the work, and under which the third party grants, to any of the 517 | parties who would receive the covered work from you, a discriminatory 518 | patent license (a) in connection with copies of the covered work 519 | conveyed by you (or copies made from those copies), or (b) primarily 520 | for and in connection with specific products or compilations that 521 | contain the covered work, unless you entered into that arrangement, 522 | or that patent license was granted, prior to 28 March 2007. 523 | 524 | Nothing in this License shall be construed as excluding or limiting 525 | any implied license or other defenses to infringement that may 526 | otherwise be available to you under applicable patent law. 527 | 528 | 12. No Surrender of Others' Freedom. 529 | 530 | If conditions are imposed on you (whether by court order, agreement or 531 | otherwise) that contradict the conditions of this License, they do not 532 | excuse you from the conditions of this License. If you cannot convey a 533 | covered work so as to satisfy simultaneously your obligations under this 534 | License and any other pertinent obligations, then as a consequence you may 535 | not convey it at all. For example, if you agree to terms that obligate you 536 | to collect a royalty for further conveying from those to whom you convey 537 | the Program, the only way you could satisfy both those terms and this 538 | License would be to refrain entirely from conveying the Program. 539 | 540 | 13. Remote Network Interaction; Use with the GNU General Public License. 541 | 542 | Notwithstanding any other provision of this License, if you modify the 543 | Program, your modified version must prominently offer all users 544 | interacting with it remotely through a computer network (if your version 545 | supports such interaction) an opportunity to receive the Corresponding 546 | Source of your version by providing access to the Corresponding Source 547 | from a network server at no charge, through some standard or customary 548 | means of facilitating copying of software. This Corresponding Source 549 | shall include the Corresponding Source for any work covered by version 3 550 | of the GNU General Public License that is incorporated pursuant to the 551 | following paragraph. 552 | 553 | Notwithstanding any other provision of this License, you have 554 | permission to link or combine any covered work with a work licensed 555 | under version 3 of the GNU General Public License into a single 556 | combined work, and to convey the resulting work. The terms of this 557 | License will continue to apply to the part which is the covered work, 558 | but the work with which it is combined will remain governed by version 559 | 3 of the GNU General Public License. 560 | 561 | 14. Revised Versions of this License. 562 | 563 | The Free Software Foundation may publish revised and/or new versions of 564 | the GNU Affero General Public License from time to time. Such new versions 565 | will be similar in spirit to the present version, but may differ in detail to 566 | address new problems or concerns. 567 | 568 | Each version is given a distinguishing version number. If the 569 | Program specifies that a certain numbered version of the GNU Affero General 570 | Public License "or any later version" applies to it, you have the 571 | option of following the terms and conditions either of that numbered 572 | version or of any later version published by the Free Software 573 | Foundation. If the Program does not specify a version number of the 574 | GNU Affero General Public License, you may choose any version ever published 575 | by the Free Software Foundation. 576 | 577 | If the Program specifies that a proxy can decide which future 578 | versions of the GNU Affero General Public License can be used, that proxy's 579 | public statement of acceptance of a version permanently authorizes you 580 | to choose that version for the Program. 581 | 582 | Later license versions may give you additional or different 583 | permissions. However, no additional obligations are imposed on any 584 | author or copyright holder as a result of your choosing to follow a 585 | later version. 586 | 587 | 15. Disclaimer of Warranty. 588 | 589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 597 | 598 | 16. Limitation of Liability. 599 | 600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 608 | SUCH DAMAGES. 609 | 610 | 17. Interpretation of Sections 15 and 16. 611 | 612 | If the disclaimer of warranty and limitation of liability provided 613 | above cannot be given local legal effect according to their terms, 614 | reviewing courts shall apply local law that most closely approximates 615 | an absolute waiver of all civil liability in connection with the 616 | Program, unless a warranty or assumption of liability accompanies a 617 | copy of the Program in return for a fee. 618 | 619 | END OF TERMS AND CONDITIONS 620 | 621 | How to Apply These Terms to Your New Programs 622 | 623 | If you develop a new program, and you want it to be of the greatest 624 | possible use to the public, the best way to achieve this is to make it 625 | free software which everyone can redistribute and change under these terms. 626 | 627 | To do so, attach the following notices to the program. It is safest 628 | to attach them to the start of each source file to most effectively 629 | state the exclusion of warranty; and each file should have at least 630 | the "copyright" line and a pointer to where the full notice is found. 631 | 632 | 633 | Copyright (C) 634 | 635 | This program is free software: you can redistribute it and/or modify 636 | it under the terms of the GNU Affero General Public License as published 637 | by the Free Software Foundation, either version 3 of the License, or 638 | (at your option) any later version. 639 | 640 | This program is distributed in the hope that it will be useful, 641 | but WITHOUT ANY WARRANTY; without even the implied warranty of 642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 643 | GNU Affero General Public License for more details. 644 | 645 | You should have received a copy of the GNU Affero General Public License 646 | along with this program. If not, see . 647 | 648 | Also add information on how to contact you by electronic and paper mail. 649 | 650 | If your software can interact with users remotely through a computer 651 | network, you should also make sure that it provides a way for users to 652 | get its source. For example, if your program is a web application, its 653 | interface could display a "Source" link that leads users to an archive 654 | of the code. There are many ways you could offer source, and different 655 | solutions will be better for different programs; see section 13 for the 656 | specific requirements. 657 | 658 | You should also get your employer (if you work as a programmer) or school, 659 | if any, to sign a "copyright disclaimer" for the program, if necessary. 660 | For more information on this, and how to apply and follow the GNU AGPL, see 661 | . -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Alist文件列表 2 | 3 | ## 是什么? 4 | `V3 一个支持多种存储,支持网页浏览和 WebDAV 的文件列表程序,由 gin 和 Solidjs 驱动。` 5 | 6 | `V2 一款支持多种存储的目录文件列表程序,支持 web 浏览与 webdav,后端基于gin,前端使用react。` 7 | 8 | 9 | ## 项目地址 10 | https://github.com/AlistGo/alist 11 | 12 | ## 官方信息 13 | 14 | [官方TG交流群](https://t.me/alist_chat) `插件正常启动后的使用问题请查看文档或去官方TG交流群寻求帮助` 15 | 16 | V3文档 https://alist.nn.ci/zh/guide/ 17 | 18 | V2文档 https://alist-doc.nn.ci/docs/intro 19 | 20 | --- 21 | 22 | ## 机型支持 23 | 24 | 在asuswrt为基础的固件上,alist插件目前仅支持aarch64架构的路由器,具体如下: 25 | 26 | - 部分及其未列出,请根据CPU型号和支持软件中心与否自行判断 27 | - 使用alist建议配置1G及以上的虚拟内存,特别是小内存的路由器 28 | 29 | | 机型 | 内存 | CPU/SOC | 架构 | 核心 | 频率 | 插件支持 | 30 | | ---------------- | ----- | ------- | ----- | ---- | ------- |--------| 31 | | RT-AC86U | 512MB | BCM4906 | armv8 | 2 | 1.8 GHz | ✔️ | 32 | | GT-AC2900 | 512MB | BCM4906 | armv8 | 2 | 1.8 GHz | ✔️ | 33 | | RT-AX92U | 512MB | BCM4906 | armv8 | 2 | 1.8 GHz | ✔️ | 34 | | GT-AC5300 | 1GB | BCM4908 | armv8 | 4 | 1.8 GHz | ✔️ | 35 | | RT-AX88U | 1GB | BCM4908 | armv8 | 4 | 1.8 GHz | ✔️ | 36 | | GT-AX11000 | 1GB | BCM4908 | armv8 | 4 | 1.8 GHz | ✔️ | 37 | | NetGear RAX80 | 1GB | BCM4908 | armv8 | 4 | 1.8 GHz | ✔️ | 38 | | RT-AX68U | 512MB | BCM4906 | armv8 | 2 | 1.8 GHz | ✔️ | 39 | | RT-AX86U | 1GB | BCM4908 | armv8 | 4 | 1.8 GHz | ✔️ | 40 | | GT-AXE11000 | 1GB | BCM4908 | armv8 | 4 | 1.8 GHz | ✔️ | 41 | | ZenWiFi_Pro_XT12 | 1GB | BCM4912 | armv8 | 4 | 2.0GHz | ✔️ | 42 | | GT-AX6000 | 1GB | BCM4912 | armv8 | 4 | 2.0GHz | ✔️ | 43 | | GT-AX11000_PRO | 1GB | BCM4912 | armv8 | 4 | 2.0GHz | ✔️ | 44 | | RT-AX86U_PRO | 1GB | BCM4912 | armv8 | 4 | 2.0GHz | ✔️ | 45 | | RAX50 | 512MB | BCM6750 | armv7 | 3 | 1.5 GHz | ✔️ | 46 | | RAX70 | 512MB | BCM6755 | armv7 | 4 | 1.5 GHz | ✔️ | 47 | | RT-AX56U | 512MB | BCM6755 | armv7 | 4 | 1.5 GHz | ✔️ | 48 | | RT-AX56U_V2 | 256MB | BCM6755 | armv7 | 4 | 1.5 GHz | ✔️ | 49 | | RT-AX58U | 512MB | BCM6750 | armv7 | 3 | 1.5 GHz | ✔️ | 50 | | RT-AX82U | 512MB | BCM6750 | armv7 | 3 | 1.5 GHz | ✔️ | 51 | | TUF-AX3000 | 512MB | BCM6750 | armv7 | 3 | 1.5 GHz | ✔️ | 52 | | TUF-AX5400 | 512MB | BCM6750 | armv7 | 3 | 1.5 GHz | ✔️ | 53 | | ZenWiFi_XT8 | 512MB | BCM6755 | armv7 | 4 | 1.5 GHz | ✔️ | 54 | | ZenWiFi_XD4 | 256MB | BCM6755 | armv7 | 4 | 1.5 GHz | ✔️ | 55 | | TUF-AX3000_V2 | 512MB | BCM6756 | armv7 | 4 | 1.7GHz | ✔️ | 56 | | RT-AX57 | 256MB | BCM6756 | armv7 | 4 | 1.7GHz | ✔️ | 57 | -------------------------------------------------------------------------------- /alist/.valid: -------------------------------------------------------------------------------- 1 | hnd 2 | qca 3 | mtk -------------------------------------------------------------------------------- /alist/bin/alist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everstu/Koolcenter_alist/b3634836a0e61ae621ba52bf32654591acb12fcf/alist/bin/alist -------------------------------------------------------------------------------- /alist/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | source /koolshare/scripts/base.sh 3 | alias echo_date='echo 【$(TZ=UTC-8 date -R +%Y年%m月%d日\ %X)】:' 4 | MODEL= 5 | FW_TYPE_CODE= 6 | FW_TYPE_NAME= 7 | DIR=$(cd $(dirname $0); pwd) 8 | module=${DIR##*/} 9 | 10 | get_model(){ 11 | local ODMPID=$(nvram get odmpid) 12 | local PRODUCTID=$(nvram get productid) 13 | if [ -n "${ODMPID}" ];then 14 | MODEL="${ODMPID}" 15 | else 16 | MODEL="${PRODUCTID}" 17 | fi 18 | } 19 | 20 | get_fw_type() { 21 | local KS_TAG=$(nvram get extendno|grep -Eo "kool.+") 22 | if [ -d "/koolshare" ];then 23 | if [ -n "${KS_TAG}" ];then 24 | FW_TYPE_CODE="2" 25 | FW_TYPE_NAME="${KS_TAG}官改固件" 26 | else 27 | FW_TYPE_CODE="4" 28 | FW_TYPE_NAME="koolshare梅林改版固件" 29 | fi 30 | else 31 | if [ "$(uname -o|grep Merlin)" ];then 32 | FW_TYPE_CODE="3" 33 | FW_TYPE_NAME="梅林原版固件" 34 | else 35 | FW_TYPE_CODE="1" 36 | FW_TYPE_NAME="华硕官方固件" 37 | fi 38 | fi 39 | } 40 | 41 | platform_test(){ 42 | local LINUX_VER=$(uname -r|awk -F"." '{print $1$2}') 43 | local ARCH=$(uname -m) 44 | if [ -d "/koolshare" -a -f "/usr/bin/skipd" -a "${LINUX_VER}" -ge "41" ];then 45 | echo_date 机型:"${MODEL} ${FW_TYPE_NAME} 符合安装要求,开始安装插件!" 46 | else 47 | exit_install 1 48 | fi 49 | } 50 | 51 | set_skin(){ 52 | local UI_TYPE=ASUSWRT 53 | local SC_SKIN=$(nvram get sc_skin) 54 | local ROG_FLAG=$(grep -o "680516" /www/form_style.css|head -n1) 55 | local TUF_FLAG=$(grep -o "D0982C" /www/form_style.css|head -n1) 56 | if [ -n "${ROG_FLAG}" ];then 57 | UI_TYPE="ROG" 58 | fi 59 | if [ -n "${TUF_FLAG}" ];then 60 | UI_TYPE="TUF" 61 | fi 62 | 63 | if [ -z "${SC_SKIN}" -o "${SC_SKIN}" != "${UI_TYPE}" ];then 64 | echo_date "安装${UI_TYPE}皮肤!" 65 | nvram set sc_skin="${UI_TYPE}" 66 | nvram commit 67 | fi 68 | } 69 | 70 | exit_install(){ 71 | local state=$1 72 | case $state in 73 | 1) 74 | echo_date "本插件适用于【koolshare 梅林改/官改 hnd/axhnd/axhnd.675x】固件平台!" 75 | echo_date "你的固件平台不能安装!!!" 76 | echo_date "本插件支持机型/平台:https://github.com/koolshare/rogsoft#rogsoft" 77 | echo_date "退出安装!" 78 | rm -rf /tmp/alist* >/dev/null 2>&1 79 | exit 1 80 | ;; 81 | 2) 82 | echo_date "Alist插件目前仅支持hnd机型中的armv8机型!" 83 | echo_date "你的路由器不能安装!!!" 84 | echo_date "退出安装!" 85 | rm -rf /tmp/alist* >/dev/null 2>&1 86 | exit 1 87 | ;; 88 | 0|*) 89 | rm -rf /tmp/alist* >/dev/null 2>&1 90 | exit 0 91 | ;; 92 | esac 93 | } 94 | 95 | dbus_nset(){ 96 | # set key when value not exist 97 | local ret=$(dbus get $1) 98 | if [ -z "${ret}" ];then 99 | dbus set $1=$2 100 | fi 101 | } 102 | 103 | 104 | install_now() { 105 | # default value 106 | local TITLE="Alist 文件列表" 107 | local DESCR="一个支持多种存储的文件列表程序,使用 Gin 和 Solidjs。" 108 | local PLVER=$(cat ${DIR}/version) 109 | 110 | # stop signdog first 111 | enable=$(dbus get alist_enable) 112 | if [ "${enable}" == "1" -a "$(pidof alist)" ];then 113 | echo_date "先关闭alist插件!以保证更新成功!" 114 | sh /koolshare/scripts/alist_config.sh stop 115 | fi 116 | 117 | # remove some files first 118 | find /koolshare/init.d/ -name "*alist*" | xargs rm -rf 119 | rm -rf /koolshare/alist/alist.version >/dev/null 2>&1 120 | 121 | # isntall file 122 | echo_date "安装插件相关文件..." 123 | cp -rf /tmp/${module}/bin/* /koolshare/bin/ 124 | cp -rf /tmp/${module}/res/* /koolshare/res/ 125 | cp -rf /tmp/${module}/scripts/* /koolshare/scripts/ 126 | cp -rf /tmp/${module}/webs/* /koolshare/webs/ 127 | cp -rf /tmp/${module}/uninstall.sh /koolshare/scripts/uninstall_${module}.sh 128 | mkdir -p /koolshare/alist/ 129 | 130 | #创建开机自启任务 131 | [ ! -L "/koolshare/init.d/S99alist.sh" ] && ln -sf /koolshare/scripts/alist_config.sh /koolshare/init.d/S99alist.sh 132 | [ ! -L "/koolshare/init.d/N99alist.sh" ] && ln -sf /koolshare/scripts/alist_config.sh /koolshare/init.d/N99alist.sh 133 | 134 | # Permissions 135 | chmod +x /koolshare/scripts/* >/dev/null 2>&1 136 | chmod +x /koolshare/bin/alist >/dev/null 2>&1 137 | 138 | # dbus value 139 | echo_date "设置插件默认参数..." 140 | dbus set ${module}_version="${PLVER}" 141 | dbus set softcenter_module_${module}_version="${PLVER}" 142 | dbus set softcenter_module_${module}_install="1" 143 | dbus set softcenter_module_${module}_name="${module}" 144 | dbus set softcenter_module_${module}_title="${TITLE}" 145 | dbus set softcenter_module_${module}_description="${DESCR}" 146 | 147 | # 检查插件默认dbus值 148 | dbus_nset alist_port "5244" 149 | dbus_nset alist_token_expires_in "48" 150 | dbus_nset alist_cert_file "/etc/cert.pem" 151 | dbus_nset alist_key_file "/etc/key.pem" 152 | 153 | # reenable 154 | if [ "${enable}" == "1" ];then 155 | echo_date "重新启动alist插件!" 156 | sh /koolshare/scripts/alist_config.sh boot_up 157 | fi 158 | 159 | # finish 160 | echo_date "${TITLE}插件安装完毕!" 161 | exit_install 162 | } 163 | 164 | checkIsNeedMigrate() { 165 | local runDir="/koolshare/alist" 166 | if [ -d ${runDir} ]; then 167 | local binVersion=$(dbus get alist_bin_version) 168 | if [ ! -z $binVersion ];then 169 | local version=${binVersion:0:1} 170 | fi 171 | if [ ! -z $version ] && [ "$version" -lt "3" ];then 172 | echo_date "检测已安装alist_v2版,此次升级无法兼容升级!" 173 | if [ ! -d /koolshare/alist_v2 ];then 174 | echo_date "已备份alist_v2数据至/koolshare/alist_v2目录。" 175 | mv /koolshare/alist /koolshare/alist_v2 176 | else 177 | echo_date "已有alist_v2数据备份,本次备份跳过。" 178 | fi 179 | fi 180 | #清理失效配置项 181 | dbus remove alist_assets 182 | dbus remove alist_cache_time 183 | dbus remove alist_cache_cleaup 184 | dbus remove alist_bin_version 185 | dbus remove alist_watchdog_time 186 | fi 187 | } 188 | 189 | install() { 190 | get_model 191 | get_fw_type 192 | platform_test 193 | checkIsNeedMigrate 194 | install_now 195 | } 196 | 197 | install 198 | -------------------------------------------------------------------------------- /alist/res/icon-alist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everstu/Koolcenter_alist/b3634836a0e61ae621ba52bf32654591acb12fcf/alist/res/icon-alist.png -------------------------------------------------------------------------------- /alist/scripts/alist_config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | source /koolshare/scripts/base.sh 4 | eval $(dbus export alist_) 5 | alias echo_date='echo 【$(TZ=UTC-8 date -R +%Y年%m月%d日\ %X)】:' 6 | AlistBaseDir=/koolshare/alist 7 | LOG_FILE=/tmp/upload/alist_log.txt 8 | LOCK_FILE=/var/lock/alist.lock 9 | configRunPath='/koolshare/alist/' #运行时db等文件存放目录 默认放到/koolshare/目录下 10 | BASH=${0##*/} 11 | ARGS=$@ 12 | #初始化配置变量 13 | configPort=5244 14 | configHttpsPort=5245 15 | configTokenExpiresIn=48 16 | cofigMaxConnections=0 17 | configSiteUrl= 18 | configDisableHttp=false 19 | configForceHttps=false 20 | configHttps=false 21 | configCertFile='' 22 | configKeyFile='' 23 | configDelayedStart=0 24 | configCheckSslCert=true 25 | 26 | set_lock() { 27 | exec 233>${LOCK_FILE} 28 | flock -n 233 || { 29 | # bring back to original log 30 | http_response "$ACTION" 31 | exit 1 32 | } 33 | } 34 | 35 | unset_lock() { 36 | flock -u 233 37 | rm -rf ${LOCK_FILE} 38 | } 39 | 40 | number_test() { 41 | case $1 in 42 | '' | *[!0-9]*) 43 | echo 1 44 | ;; 45 | *) 46 | echo 0 47 | ;; 48 | esac 49 | } 50 | 51 | detect_url() { 52 | local fomart_1=$(echo $1 | grep -E "^https://|^http://") 53 | local fomart_2=$(echo $1 | grep -E "\.") 54 | if [ -n "${fomart_1}" -a -n "${fomart_2}" ]; then 55 | return 0 56 | else 57 | return 1 58 | fi 59 | } 60 | 61 | dbus_rm() { 62 | # remove key when value exist 63 | if [ -n "$1" ]; then 64 | dbus remove $1 65 | fi 66 | } 67 | 68 | detect_running_status() { 69 | local BINNAME=$1 70 | local PID 71 | local i=40 72 | until [ -n "${PID}" ]; do 73 | usleep 250000 74 | i=$(($i - 1)) 75 | PID=$(pidof ${BINNAME}) 76 | if [ "$i" -lt 1 ]; then 77 | echo_date "🔴$1进程启动失败,请检查你的配置!" 78 | return 79 | fi 80 | done 81 | echo_date "🟢$1启动成功,pid:${PID}" 82 | } 83 | 84 | check_usb2jffs_used_status() { 85 | # 查看当前/jffs的挂载点是什么设备,如/dev/mtdblock9, /dev/sda1;有usb2jffs的时候,/dev/sda1,无usb2jffs的时候,/dev/mtdblock9,出问题未正确挂载的时候,为空 86 | local cur_patition=$(df -h | /bin/grep /jffs | awk '{print $1}') 87 | local jffs_device="not mount" 88 | if [ -n "${cur_patition}" ]; then 89 | jffs_device=${cur_patition} 90 | fi 91 | local mounted_nu=$(mount | /bin/grep "${jffs_device}" | grep -E "/tmp/mnt/|/jffs" | /bin/grep -c "/dev/s") 92 | if [ "${mounted_nu}" -eq "2" ]; then 93 | echo "1" #已安装并成功挂载 94 | else 95 | echo "0" #未安装或未挂载 96 | fi 97 | } 98 | 99 | write_backup_job() { 100 | sed -i '/alist_backupdb/d' /var/spool/cron/crontabs/* >/dev/null 2>&1 101 | echo_date "ℹ️[Tmp目录模式] 创建alist数据库备份任务" 102 | cru a alist_backupdb "*/1 * * * * /bin/sh /koolshare/scripts/alist_config.sh backup" 103 | } 104 | 105 | kill_cron_job() { 106 | if [ -n "$(cru l | grep alist_backupdb)" ]; then 107 | echo_date "ℹ️[Tmp目录模式] 删除alist数据库备份任务..." 108 | sed -i '/alist_backupdb/d' /var/spool/cron/crontabs/* >/dev/null 2>&1 109 | fi 110 | } 111 | 112 | restore_alist_used_db() { 113 | if [ -f "/tmp/upload/run_alist/data.db" ]; then 114 | cp -rf /tmp/upload/run_alist/data.db* /koolshare/alist/ >/dev/null 2>&1 115 | echo_date "➡️[Tmp目录模式] 复制alist数据库至备份目录!" 116 | rm -rf /tmp/upload/run_alist/ 117 | fi 118 | kill_cron_job 119 | } 120 | 121 | check_run_mode() { 122 | if [ $(check_usb2jffs_used_status) == "1" ] && [ "${1}" == "start" ]; then 123 | echo_date "➡️检测到已安装插件usb2jffs并成功挂载,插件可以正常启动!" 124 | restore_alist_used_db 125 | fi 126 | } 127 | 128 | checkDbFilePath() { 129 | local ACT=${1} 130 | check_run_mode ${ACT} 131 | #检查db运行目录是放在/tmp还是/koolshare 132 | if [ "${ACT}" = "start" ]; then 133 | if [ $(check_usb2jffs_used_status) != "1" ]; then #未挂载usb2jffs就检测是否需要运行在/tmp目录 134 | local LINUX_VER=$(uname -r | awk -F"." '{print $1$2}') 135 | if [ "$LINUX_VER" = 41 ]; then #内核过低就运行在Tmp目录 136 | echo_date "⚠️检测到内核版本过低,设置Alist为Tmp目录模式!" 137 | configRunPath='/tmp/upload/run_alist/' 138 | echo_date "⚠️安装usb2jffs插件并成功挂载可恢复正常运行模式!" 139 | echo_date "⚠️[Tmp目录模式] Alist将运行在/tmp目录!" 140 | mkdir -p /tmp/upload/run_alist/ 141 | if [ ! -f "/tmp/upload/run_alist/data.db" ]; then 142 | cp -rf /koolshare/alist/data.db* /tmp/upload/run_alist/ >/dev/null 2>&1 143 | echo_date "➡️[Tmp目录模式] 复制alist数据库至使用目录!" 144 | fi 145 | write_backup_job 146 | fi 147 | fi 148 | else 149 | restore_alist_used_db 150 | fi 151 | } 152 | 153 | makeConfig() { 154 | echo_date "➡️生成alist配置文件到${AlistBaseDir}/config.json!" 155 | 156 | # 初始化端口 157 | if [ $(number_test ${alist_port}) != "0" ]; then 158 | dbus set alist_port=${configPort} 159 | else 160 | configPort=${alist_port} 161 | fi 162 | 163 | #初始化缓存清除时间 164 | if [ $(number_test ${alist_token_expires_in}) != "0" ]; then 165 | dbus set alist_token_expires_in=${configTokenExpiresIn} 166 | else 167 | configTokenExpiresIn=${alist_token_expires_in} 168 | fi 169 | 170 | #初始化最大并发连接数 171 | if [ $(number_test ${alist_max_connections}) != "0" ]; then 172 | dbus set alist_max_connections=${cofigMaxConnections} 173 | else 174 | cofigMaxConnections=${alist_max_connections} 175 | fi 176 | 177 | #初始化https端口 178 | if [ $(number_test ${alist_https_port}) != "0" ]; then 179 | dbus set alist_https_port=${configHttpsPort} 180 | else 181 | configHttpsPort=${alist_https_port} 182 | fi 183 | 184 | #初始化强制跳转https 185 | if [ $(number_test ${alist_force_https}) != "0" ]; then 186 | dbus set alist_force_https="0" 187 | fi 188 | 189 | #初始化强制跳转https 190 | if [ $(number_test ${alist_force_https}) != "0" ]; then 191 | dbus set alist_force_https="0" 192 | fi 193 | 194 | # #初始化验证SSL证书 195 | # if [ "${alist_check_ssl_cert}" == "0" ]; then 196 | # configCheckSslCert=false 197 | # fi 198 | 199 | #初始化延迟启动时间 200 | if [ $(number_test ${alist_delayed_start}) != "0" ]; then 201 | dbus set alist_delayed_start=0 202 | else 203 | configDelayedStart=${alist_delayed_start} 204 | fi 205 | 206 | #检查alist运行DB目录 207 | checkDbFilePath start 208 | 209 | # 静态资源CDN 210 | local configCdn=$(dbus get alist_cdn) 211 | if [ -n "${configCdn}" ]; then 212 | detect_url ${configCdn} 213 | if [ "$?" != "0" ]; then 214 | # 非url,清空后使用/ 215 | echo_date "⚠️CDN格式错误!这将导致面板无法访问!" 216 | echo_date "⚠️本次插件启动不会将此CDN写入配置,下次请更正,继续..." 217 | configCdn='/' 218 | dbus set alist_cdn_error=1 219 | else 220 | #检测是否为饿了么CDN如果为饿了么CDN则强行替换成本地静态资源 221 | local MATCH_1=$(echo ${configCdn} | grep -Eo "npm.elemecdn.com") 222 | if [ -n "${MATCH_1}" ]; then 223 | echo_date "⚠️检测到你配置了饿了么CDN,当前饿了么CDN已经失效!这将导致面板无法访问!" 224 | echo_date "⚠️本次插件启动不会将此CDN写入配置,下次请更正,继续..." 225 | configCdn='/' 226 | dbus set alist_cdn_error=1 227 | fi 228 | fi 229 | else 230 | configCdn='/' 231 | fi 232 | 233 | # 初始化https,条件: 234 | # 1. 必须要开启公网访问 235 | # 2. https开关要打开 236 | # 3. 证书文件路径和密钥文件路径都不能为空 237 | # 4. 证书文件和密钥文件要在路由器内找得到 238 | # 5. 证书文件和密钥文件要是合法的 239 | # 6. 证书文件和密钥文件还必须得相匹配 240 | # 7. 继续往下的话就是验证下证书中的域名是否和URL中的域名匹配...算了太麻烦没必要做了 241 | if [ "${alist_publicswitch}" == "1" ]; then 242 | # 1. 必须要开启公网访问 243 | if [ "${alist_https}" == "1" ]; then 244 | # 2. https开关要打开 245 | if [ -n "${alist_cert_file}" -a -n "${alist_key_file}" ]; then 246 | # 3. 证书文件路径和密钥文件路径都不能为空 247 | if [ -f "${alist_cert_file}" -a -f "${alist_key_file}" ]; then 248 | # 4. 证书文件和密钥文件要在路由器内找得到 249 | local CER_VERFY=$(openssl x509 -noout -pubkey -in ${alist_cert_file} 2>/dev/null) 250 | local KEY_VERFY=$(openssl pkey -pubout -in ${alist_key_file} 2>/dev/null) 251 | if [ -n "${CER_VERFY}" -a -n "${KEY_VERFY}" ]; then 252 | # 5. 证书文件和密钥文件要是合法的 253 | local CER_MD5=$(echo "${CER_VERFY}" | md5sum | awk '{print $1}') 254 | local KEY_MD5=$(echo "${KEY_VERFY}" | md5sum | awk '{print $1}') 255 | if [ "${CER_MD5}" == "${KEY_MD5}" ]; then 256 | # 6. 证书文件和密钥文件还必须得相匹配 257 | echo_date "🆗证书校验通过!为alist面板启用https..." 258 | configHttps=true 259 | configCertFile=${alist_cert_file} 260 | configKeyFile=${alist_key_file} 261 | else 262 | echo_date "⚠️无法启用https,原因如下:" 263 | echo_date "⚠️证书公钥:${alist_cert_file} 和证书私钥: ${alist_key_file}不匹配!" 264 | dbus set alist_cert_error=1 265 | dbus set alist_key_error=1 266 | fi 267 | else 268 | echo_date "⚠️无法启用https,原因如下:" 269 | if [ -z "${CER_VERFY}" ]; then 270 | echo_date "⚠️证书公钥Cert文件错误,检测到这不是公钥文件!" 271 | dbus set alist_cert_error=1 272 | fi 273 | if [ -z "${KEY_VERFY}" ]; then 274 | echo_date "⚠️证书私钥Key文件错误,检测到这不是私钥文件!" 275 | dbus set alist_key_error=1 276 | fi 277 | fi 278 | else 279 | echo_date "⚠️无法启用https,原因如下:" 280 | if [ ! -f "${alist_cert_file}" ]; then 281 | echo_date "⚠️未找到证书公钥Cert文件!" 282 | dbus set alist_cert_error=1 283 | fi 284 | if [ ! -f "${alist_key_file}" ]; then 285 | echo_date "⚠️未找到证书私钥Key文件!" 286 | dbus set alist_key_error=1 287 | fi 288 | fi 289 | else 290 | echo_date "⚠️无法启用https,原因如下:" 291 | if [ -z "${alist_cert_file}" ]; then 292 | echo_date "⚠️证书公钥Cert文件路径未配置!" 293 | dbus set alist_cert_error=1 294 | fi 295 | if [ -z "${alist_key_file}" ]; then 296 | echo_date "⚠️证书私钥Key文件路径未配置!" 297 | dbus set alist_key_error=1 298 | fi 299 | fi 300 | fi 301 | fi 302 | 303 | #检查关闭http访问 304 | if [ "${configHttps}" == "true" ]; then 305 | if [ "${configHttpsPort}" == "${configPort}" ]; then 306 | configHttps=false 307 | configHttpsPort="-1" 308 | echo_date "⚠️ Alist 管理面板http和https端口相同,本次启动关闭https!" 309 | else 310 | if [ "${alist_force_https}" == "1" ]; then 311 | echo_date "🆗 Alist 管理面板已开启强制跳转https。" 312 | configForceHttps=true 313 | fi 314 | fi 315 | else 316 | configHttpsPort="-1" 317 | fi 318 | 319 | # 网站url只有在开启公网访问后才可用,且未开https的时候,网站url不能配置为https 320 | # 格式错误的时候,需要清空,以免面板入口用了这个URL导致无法访问 321 | if [ "${alist_publicswitch}" == "1" ]; then 322 | if [ -n "${alist_site_url}" ]; then 323 | detect_url ${alist_site_url} 324 | if [ "$?" != "0" ]; then 325 | echo_date "⚠️网站URL:${alist_site_url} 格式错误!" 326 | echo_date "⚠️本次插件启动不会将此网站URL写入配置,下次请更正,继续..." 327 | dbus set alist_url_error=1 328 | else 329 | local MATCH_2=$(echo "${alist_site_url}" | grep -Eo "ddnsto|kooldns|tocmcc") 330 | local MATCH_3=$(echo "${alist_site_url}" | grep -Eo "^https://") 331 | local MATCH_4=$(echo "${alist_site_url}" | grep -Eo "^http://") 332 | if [ -n "${MATCH_2}" ]; then 333 | # ddnsto,不能开https 334 | if [ "${configHttps}" == "true" ]; then 335 | echo_date "⚠️网站URL:${alist_site_url} 来自ddnsto!" 336 | echo_date "⚠️你需要关闭alist的https,不然将导致无法访问面板!" 337 | #echo_date "⚠️本次插件启动不会将此网站URL写入配置,下次请更正,继续..." 338 | #dbus set alist_url_error=1 339 | #else 340 | #configSiteUrl=${alist_site_url} 341 | fi 342 | else 343 | # ddns,根据情况判断 344 | if [ -n "${MATCH_3}" -a "${configHttps}" != "true" ]; then 345 | echo_date "⚠️网站URL:${alist_site_url} 格式为https!" 346 | echo_date "⚠️你需要启用alist的https功能,不然会导致面alist部分功能出现问题!" 347 | #echo_date "⚠️本次插件启动不会将此网站URL写入配置,下次请更正,继续..." 348 | #dbus set alist_url_error=1 349 | elif [ -n "${MATCH_4}" -a "${configHttps}" == "true" ]; then 350 | echo_date "⚠️网站URL:${alist_site_url} 格式为http!" 351 | echo_date "⚠️你需要启用alist的https,或者更改网站URL为http协议,不然将导致无法访问面板!" 352 | #echo_date "⚠️本次插件启动不会将此网站URL写入配置,下次请更正,继续..." 353 | #dbus set alist_url_error=1 354 | else 355 | # 路由器中使用网站URL的话,还必须配置端口 356 | if [ -n "${MATCH_3}" ]; then 357 | local rightPort=$configHttpsPort 358 | local MATCH_5=$(echo "${alist_site_url}" | grep -Eo ":${configHttpsPort}$") 359 | else 360 | local rightPort=$configHttpsPort 361 | local MATCH_5=$(echo "${alist_site_url}" | grep -Eo ":${configPort}$") 362 | fi 363 | if [ -z "${MATCH_5}" ]; then 364 | echo_date "⚠️网站URL:${alist_site_url} 端口配置错误!" 365 | echo_date "⚠️你需要为网站URL配置端口:${rightPort},不然会导致面alist部分功能出现问题!" 366 | #echo_date "⚠️本次插件启动不会将此网站URL写入配置,下次请更正,继续..." 367 | #dbus set alist_url_error=1 368 | #else 369 | #configSiteUrl=${alist_site_url} 370 | fi 371 | fi 372 | fi 373 | # 只要网址正确就写入配置,只检测提示,不阻止写入。2024年11月6日修改 374 | configSiteUrl=${alist_site_url} 375 | fi 376 | fi 377 | else 378 | local dummy 379 | # 配置了网站URL,但是没有开启公网访问 380 | # 只有打开公网访问后配置网站URL才有意义,所以插件将不会启用网站URL... 381 | # 不过也不需要日志告诉用户,因为插件里关闭公网访问的时候网站URL也被隐藏了的 382 | fi 383 | 384 | # 公网/内网访问 385 | local BINDADDR 386 | local LANADDR=$(ifconfig br0 | grep -Eo "inet addr.+" | awk -F ":| " '{print $3}' 2>/dev/null) 387 | if [ "${alist_publicswitch}" != "1" ]; then 388 | if [ -n "${LANADDR}" ]; then 389 | BINDADDR=${LANADDR} 390 | else 391 | BINDADDR="0.0.0.0" 392 | fi 393 | else 394 | BINDADDR="0.0.0.0" 395 | fi 396 | 397 | config='{ 398 | "force":false, 399 | "jwt_secret":"random generated", 400 | "token_expires_in":'${configTokenExpiresIn}', 401 | "site_url":"'${configSiteUrl}'", 402 | "cdn":"'${configCdn}'", 403 | "database": 404 | { 405 | "type":"sqlite3", 406 | "host":"","port":0, 407 | "user":"", 408 | "password":"", 409 | "name":"", 410 | "db_file":"'${configRunPath}'data.db", 411 | "table_prefix":"x_", 412 | "ssl_mode":"" 413 | }, 414 | "scheme": 415 | { 416 | "address":"'${BINDADDR}'", 417 | "http_port":'${configPort}', 418 | "https_port":'${configHttpsPort}', 419 | "force_https":'${configForceHttps}', 420 | "cert_file":"'${configCertFile}'", 421 | "key_file":"'${configKeyFile}'", 422 | "unix_file":"" 423 | }, 424 | "temp_dir":"'${configRunPath}'temp", 425 | "bleve_dir":"'${configRunPath}'bleve", 426 | "log": 427 | { 428 | "enable":false, 429 | "name":"'${configRunPath}'alist.log", 430 | "max_size":10, 431 | "max_backups":5, 432 | "max_age":28, 433 | "compress":false 434 | }, 435 | "delayed_start": '${configDelayedStart}', 436 | "max_connections":'${cofigMaxConnections}', 437 | "tls_insecure_skip_verify": '${configCheckSslCert}' 438 | }' 439 | echo "${config}" >${AlistBaseDir}/config.json 440 | } 441 | 442 | #检查已开启插件 443 | check_enable_plugin() { 444 | echo_date "ℹ️当前已开启如下插件:" 445 | echo_date "➡️"$(dbus listall | grep 'enable=1' | awk -F '_' '!a[$1]++' | awk -F '_' '{print "dbus get softcenter_module_"$1"_title"|"sh"}' | tr '\n' ',' | sed 's/,$/ /') 446 | } 447 | 448 | #检查内存是否合规 449 | check_memory() { 450 | local swap_size=$(free | grep Swap | awk '{print $2}') 451 | echo_date "ℹ️检查系统内存是否合规!" 452 | if [ "$swap_size" != "0" ]; then 453 | echo_date "✅️当前系统已经启用虚拟内存!容量:${swap_size}KB" 454 | else 455 | local memory_size=$(free | grep Mem | awk '{print $2}') 456 | if [ "$memory_size" != "0" ]; then 457 | if [ $memory_size -le 750000 ]; then 458 | echo_date "❌️插件启动异常!" 459 | echo_date "❌️检测到系统内存为:${memory_size}KB,需挂载虚拟内存!" 460 | echo_date "❌️Alist程序对路由器开销极大,请挂载1G及以上虚拟内存后重新启动插件!" 461 | stop_process 462 | dbus set alist_memory_error=1 463 | dbus set alist_enable=0 464 | exit 465 | else 466 | echo_date "⚠️Alist程序对路由器开销极大,建议挂载1G及以上虚拟内存,以保证稳定!" 467 | dbus set alist_memory_warn=1 468 | fi 469 | else 470 | echo_date"⚠️未查询到系统内存,请自行注意系统内存!" 471 | fi 472 | fi 473 | echo_date "==============================================" 474 | } 475 | 476 | start_process() { 477 | ALIST_RUN_LOG=/tmp/upload/alist_run_log.txt 478 | rm -rf ${ALIST_RUN_LOG} 479 | if [ "${alist_watchdog}" == "1" ]; then 480 | echo_date "🟠启动 alist 进程,开启进程实时守护..." 481 | mkdir -p /koolshare/perp/alist 482 | cat >/koolshare/perp/alist/rc.main <<-EOF 483 | #!/bin/sh 484 | source /koolshare/scripts/base.sh 485 | CMD="/koolshare/bin/alist --data ${AlistBaseDir} server" 486 | if test \${1} = 'start' ; then 487 | exec >${ALIST_RUN_LOG} 2>&1 488 | exec \$CMD 489 | fi 490 | exit 0 491 | 492 | EOF 493 | chmod +x /koolshare/perp/alist/rc.main 494 | chmod +t /koolshare/perp/alist/ 495 | sync 496 | perpctl A alist >/dev/null 2>&1 497 | perpctl u alist >/dev/null 2>&1 498 | detect_running_status alist 499 | else 500 | echo_date "🟠启动 alist 进程..." 501 | rm -rf /tmp/alist.pid 502 | start-stop-daemon --start --quiet --make-pidfile --pidfile /tmp/alist.pid --background --startas /bin/sh -- -c "exec /koolshare/bin/alist --data ${AlistBaseDir} server >${ALIST_RUN_LOG} 2>&1" 503 | detect_running_status alist 504 | fi 505 | } 506 | 507 | start() { 508 | # 0. prepare folder if not exist 509 | mkdir -p ${AlistBaseDir} 510 | 511 | # 1. remove error 512 | dbus_rm alist_cert_error 513 | dbus_rm alist_key_error 514 | dbus_rm alist_url_error 515 | dbus_rm alist_cdn_error 516 | dbus_rm alist_memory_error 517 | dbus_rm alist_memory_warn 518 | 519 | # 2. system_check 520 | if [ "${alist_disablecheck}" = "1" ]; then 521 | echo_date "⚠️您已关闭系统检测功能,请自行留意路由器性能!" 522 | echo_date "⚠️插件对路由器性能的影响请您自行处理!!!" 523 | else 524 | echo_date "==================== 系统检测 ====================" 525 | #2.1 memory_check 526 | check_memory 527 | #2.2 enable_plugin 528 | check_enable_plugin 529 | echo_date "==================== 系统检测结束 ====================" 530 | fi 531 | 532 | # 3. stop first 533 | stop_process 534 | 535 | # 4. gen config.json 536 | makeConfig 537 | 538 | # 5. set is first run 539 | if [ ! -f "${AlistBaseDir}/data.db" ]; then 540 | echo_date "ℹ️检测到首次启动插件,生成用户和密码..." 541 | echo_date "ℹ️初始化操作较耗时,请耐心等待..." 542 | /koolshare/bin/alist --data ${AlistBaseDir} admin random >${AlistBaseDir}/admin.account 2>&1 543 | local USER=$(cat ${AlistBaseDir}/admin.account | grep -E "^.*INFO.*username" | tail -n 1 | awk '{print $NF}') 544 | local PASS=$(cat ${AlistBaseDir}/admin.account | grep -E "^.*INFO.*password" | tail -n 1 | awk '{print $NF}') 545 | if [ -n "${USER}" -a -n "${PASS}" ]; then 546 | echo_date "---------------------------------" 547 | echo_date "😛alist面板用户:${USER}" 548 | echo_date "🔑alist面板密码:${PASS}" 549 | echo_date "---------------------------------" 550 | dbus set alist_user=${USER} 551 | dbus set alist_pass=${PASS} 552 | fi 553 | fi 554 | 555 | # 6. gen version info everytime 556 | /koolshare/bin/alist version >${AlistBaseDir}/alist.version 557 | local BIN_VER=$(cat ${AlistBaseDir}/alist.version | grep -Ew "^Version" | awk '{print $2}') 558 | local WEB_VER=$(cat ${AlistBaseDir}/alist.version | grep -Ew "^WebVersion" | awk '{print $2}') 559 | if [ -n "${BIN_VER}" -a -n "${WEB_VER}" ]; then 560 | dbus set alist_binver=${BIN_VER} 561 | dbus set alist_webver=${WEB_VER} 562 | fi 563 | 564 | # 7. start process 565 | start_process 566 | 567 | # 8. open port 568 | if [ "${alist_publicswitch}" == "1" ]; then 569 | close_port >/dev/null 2>&1 570 | open_port 571 | fi 572 | } 573 | 574 | stop_process() { 575 | local ALIST_PID=$(pidof alist) 576 | checkDbFilePath stop 577 | if [ -n "${ALIST_PID}" ]; then 578 | echo_date "⛔关闭alist进程..." 579 | if [ -f "/koolshare/perp/alist/rc.main" ]; then 580 | perpctl d alist >/dev/null 2>&1 581 | fi 582 | rm -rf /koolshare/perp/alist 583 | killall alist >/dev/null 2>&1 584 | kill -9 "${ALIST_PID}" >/dev/null 2>&1 585 | fi 586 | } 587 | 588 | stop_plugin() { 589 | # 1 stop alist 590 | stop_process 591 | 592 | # 2. remove log 593 | rm -rf /tmp/upload/alist_run_log.txt 594 | 595 | # 3. close port 596 | close_port 597 | } 598 | 599 | open_port() { 600 | local CM=$(lsmod | grep xt_comment) 601 | local OS=$(uname -r) 602 | if [ -z "${CM}" -a -f "/lib/modules/${OS}/kernel/net/netfilter/xt_comment.ko" ]; then 603 | echo_date "ℹ️加载xt_comment.ko内核模块!" 604 | insmod /lib/modules/${OS}/kernel/net/netfilter/xt_comment.ko 605 | fi 606 | 607 | if [ $(number_test ${alist_port}) != "0" ]; then 608 | dbus set alist_port="5244" 609 | fi 610 | 611 | if [ $(number_test ${alist_https_port}) != "0" ]; then 612 | dbus set alist_https_port="5245" 613 | fi 614 | 615 | # 开启IPV4防火墙端口 616 | local MATCH=$(iptables -t filter -S INPUT | grep "alist_rule") 617 | if [ -z "${MATCH}" ]; then 618 | if [ "${configDisableHttp}" != "true" -a "${alist_open_http_port}" == "1" ]; then 619 | echo_date "🧱添加防火墙入站规则,打开alist http 端口: ${alist_port}" 620 | iptables -I INPUT -p tcp --dport ${alist_port} -j ACCEPT -m comment --comment "alist_rule" >/dev/null 2>&1 621 | fi 622 | if [ "${alist_https}" == "1" -a "${alist_open_https_port}" == "1" ]; then 623 | echo_date "🧱添加防火墙入站规则,打开 alist https 端口: ${alist_https_port}" 624 | iptables -I INPUT -p tcp --dport ${alist_https_port} -j ACCEPT -m comment --comment "alist_rule" >/dev/null 2>&1 625 | fi 626 | fi 627 | # 开启IPV6防火墙端口 628 | local v6tables=$(which ip6tables); 629 | local MATCH6=$(ip6tables -t filter -S INPUT | grep "alist_rule") 630 | if [ -z "${MATCH6}" ] && [ -n "${v6tables}" ]; then 631 | if [ "${configDisableHttp}" != "true" -a "${alist_open_http_port}" == "1" ]; then 632 | ip6tables -I INPUT -p tcp --dport ${alist_port} -j ACCEPT -m comment --comment "alist_rule" >/dev/null 2>&1 633 | fi 634 | if [ "${alist_https}" == "1" -a "${alist_open_https_port}" == "1" ]; then 635 | ip6tables -I INPUT -p tcp --dport ${alist_https_port} -j ACCEPT -m comment --comment "alist_rule" >/dev/null 2>&1 636 | fi 637 | fi 638 | 639 | } 640 | 641 | close_port() { 642 | local IPTS=$(iptables -t filter -S | grep -w "alist_rule" | sed 's/-A/iptables -t filter -D/g') 643 | if [ -n "${IPTS}" ]; then 644 | echo_date "🧱关闭本插件在防火墙上打开的所有端口!" 645 | iptables -t filter -S | grep -w "alist_rule" | sed 's/-A/iptables -t filter -D/g' >/tmp/alist_clean.sh 646 | chmod +x /tmp/alist_clean.sh 647 | sh /tmp/alist_clean.sh >/dev/null 2>&1 648 | rm /tmp/alist_clean.sh 649 | fi 650 | local v6tables=$(which ip6tables); 651 | local IPTS6=$(ip6tables -t filter -S | grep -w "alist_rule" | sed 's/-A/ip6tables -t filter -D/g') 652 | if [ -n "${IPTS6}" ] && [ -n "${v6tables}" ]; then 653 | ip6tables -t filter -S | grep -w "alist_rule" | sed 's/-A/ip6tables -t filter -D/g' >/tmp/alist_clean.sh 654 | chmod +x /tmp/alist_clean.sh 655 | sh /tmp/alist_clean.sh >/dev/null 2>&1 656 | rm /tmp/alist_clean.sh 657 | fi 658 | } 659 | 660 | start_backup() { 661 | if [ -d "/koolshare/alist/" ] && [ -d "/tmp/upload/run_alist/" ]; then 662 | cd /koolshare/alist && ls -l data.db* | awk '{print $9}' >/tmp/alist_db_file_list.tmp 663 | while read filename; do 664 | local dbfile_curr="/tmp/upload/run_alist/${filename}" 665 | local dbfile_save="/koolshare/alist/${filename}" 666 | if [ -f "${dbfile_curr}" ]; then 667 | if [ ! -f "${dbfile_save}" ]; then 668 | cp -rf ${dbpath_tmp} ${dbfile_save} 669 | logger "[${0##*/}]:备份Alist ${filename} 数据库!" 670 | else 671 | local new=$(md5sum ${dbfile_curr} | awk '{print $1}') 672 | local old=$(md5sum ${dbfile_save} | awk '{print $1}') 673 | if [ "${new}" != "${old}" ]; then 674 | cp -rf ${dbfile_curr} ${dbfile_save} 675 | logger "[${0##*/}]:Aist ${filename} 数据库变化,备份数据库!" 676 | fi 677 | fi 678 | fi 679 | done ${AlistBaseDir}/admin.account 2>&1 688 | local USER=$(cat ${AlistBaseDir}/admin.account | grep -E "^.*INFO.*username" | tail -n 1 | awk '{print $NF}') 689 | local PASS=$(cat ${AlistBaseDir}/admin.account | grep -E "^.*INFO.*password" | tail -n 1 | awk '{print $NF}') 690 | if [ -n "${USER}" -a -n "${PASS}" ]; then 691 | echo_date "---------------------------------" 692 | echo_date "😛alist面板用户:${USER}" 693 | echo_date "🔑alist面板密码:${PASS}" 694 | echo_date "---------------------------------" 695 | dbus set alist_user=${USER} 696 | dbus set alist_pass=${PASS} 697 | else 698 | echo_date "⚠️面板账号密码获取失败!请重启路由后重试!" 699 | fi 700 | #2. 关闭server进程 701 | echo_date "重启alist进程..." 702 | stop_process > /dev/null 2>&1 703 | 704 | # 3. 重启进程 705 | start > /dev/null 2>&1 706 | echo_date "✅重启成功!" 707 | } 708 | 709 | check_status() { 710 | local ALIST_PID=$(pidof alist) 711 | if [ "${alist_enable}" == "1" ]; then 712 | if [ -n "${ALIST_PID}" ]; then 713 | if [ "${alist_watchdog}" == "1" ]; then 714 | local alist_time=$(perpls | grep alist | grep -Eo "uptime.+-s\ " | awk -F" |:|/" '{print $3}') 715 | if [ -n "${alist_time}" ]; then 716 | http_response "alist 进程运行正常!(PID:${ALIST_PID} , 守护运行时间:${alist_time})" 717 | else 718 | http_response "alist 进程运行正常!(PID:${ALIST_PID})" 719 | fi 720 | else 721 | http_response "alist 进程运行正常!(PID:${ALIST_PID})" 722 | fi 723 | else 724 | http_response "alist 进程未运行!" 725 | fi 726 | else 727 | http_response "Alist 插件未启用" 728 | fi 729 | } 730 | 731 | case $1 in 732 | start) 733 | if [ "${alist_enable}" == "1" ]; then 734 | sleep 20 #延迟启动等待虚拟内存挂载 735 | true >${LOG_FILE} 736 | start | tee -a ${LOG_FILE} 737 | echo XU6J03M16 >>${LOG_FILE} 738 | logger "[软件中心-开机自启]: Alist自启动成功!" 739 | else 740 | logger "[软件中心-开机自启]: Alist未开启,不自动启动!" 741 | fi 742 | ;; 743 | boot_up) 744 | if [ "${alist_enable}" == "1" ]; then 745 | true >${LOG_FILE} 746 | start | tee -a ${LOG_FILE} 747 | echo XU6J03M16 >>${LOG_FILE} 748 | fi 749 | ;; 750 | start_nat) 751 | if [ "${alist_enable}" == "1" ]; then 752 | if [ "${alist_publicswitch}" == "1" ]; then 753 | logger "[软件中心-NAT重启]: 打开alist防火墙端口!" 754 | sleep 10 755 | close_port 756 | sleep 2 757 | open_port 758 | else 759 | logger "[软件中心-NAT重启]: Alist未开启公网访问,不打开湍口!" 760 | fi 761 | fi 762 | ;; 763 | backup) 764 | start_backup 765 | ;; 766 | stop) 767 | stop_plugin 768 | ;; 769 | esac 770 | 771 | case $2 in 772 | web_submit) 773 | set_lock 774 | true >${LOG_FILE} 775 | http_response "$1" 776 | # 调试 777 | # echo_date "$BASH $ARGS" | tee -a ${LOG_FILE} 778 | # echo_date alist_enable=${alist_enable} | tee -a ${LOG_FILE} 779 | if [ "${alist_enable}" == "1" ]; then 780 | echo_date "▶️开启alist!" | tee -a ${LOG_FILE} 781 | start | tee -a ${LOG_FILE} 782 | elif [ "${alist_enable}" == "2" ]; then 783 | echo_date "🔁重启alist!" | tee -a ${LOG_FILE} 784 | dbus set alist_enable=1 785 | start | tee -a ${LOG_FILE} 786 | elif [ "${alist_enable}" == "3" ]; then 787 | dbus set alist_enable=1 788 | random_password | tee -a ${LOG_FILE} 789 | else 790 | echo_date "ℹ️停止alist!" | tee -a ${LOG_FILE} 791 | stop_plugin | tee -a ${LOG_FILE} 792 | fi 793 | echo XU6J03M16 | tee -a ${LOG_FILE} 794 | unset_lock 795 | ;; 796 | status) 797 | check_status 798 | ;; 799 | esac 800 | -------------------------------------------------------------------------------- /alist/uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | alias echo_date='echo 【$(TZ=UTC-8 date -R +%Y年%m月%d日\ %X)】:' 3 | 4 | echo_date "正在删除插件资源文件..." 5 | sh /koolshare/scripts/alist_config.sh stop 6 | rm -rf /koolshare/alist 7 | rm -rf /koolshare/scripts/alist_config.sh 8 | rm -rf /koolshare/webs/Module_alist.asp 9 | rm -rf /koolshare/res/*alist* 10 | find /koolshare/init.d/ -name "*alist*" | xargs rm -rf 11 | rm -rf /koolshare/bin/alist >/dev/null 2>&1 12 | sed -i '/alist_watchdog/d' /var/spool/cron/crontabs/* >/dev/null 2>&1 13 | echo_date "插件资源文件删除成功..." 14 | 15 | rm -rf /koolshare/scripts/uninstall_alist.sh 16 | echo_date "已成功移除插件... Bye~Bye~" -------------------------------------------------------------------------------- /alist/version: -------------------------------------------------------------------------------- 1 | 2.2.9 -------------------------------------------------------------------------------- /alist/webs/Module_alist.asp: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 软件中心 - Alist文件列表 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 81 | 719 | 720 | 721 |
722 | 723 | 742 | 760 | 761 | 762 | 763 | 764 | 765 | 769 | 954 | 955 | 956 |
  766 | 767 | 768 | 770 | 771 | 772 | 773 | 951 | 952 |
774 | 775 | 776 | 948 | 949 |
777 |
 
778 |
Alist
779 |
780 | 781 |
782 |
783 |
784 | Alist 一个支持多种存储的文件列表程序,使用 Gin 和 Solidjs。 785 | 更新日志 786 | 插件日志 787 |
788 |
789 | 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 800 | 801 | 802 | 803 | 807 | 808 | 809 | 810 | 814 | 815 | 816 | 817 | 820 | 821 |
Alist - 状态
822 |
823 |
824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 832 | 835 | 836 | 837 | 838 | 839 | 842 | 843 | 844 | 845 | 848 | 849 | 856 | 857 | 858 | 862 | 863 | 864 | 865 | 869 | 870 | 871 | 872 | 876 | 877 | 878 | 879 | 882 | 883 | 884 | 885 | 888 | 889 | 890 | 891 | 894 | 895 | 896 | 897 | 901 | 902 | 903 | 904 | 908 | 909 | 915 | 916 | 917 | 920 | 921 | 922 | 923 | 926 | 927 | 928 | 929 | 932 | 933 |
Alist - 设置
关闭系统检测 833 | 834 |
实时进程守护 840 | 841 |
开启公网访问 846 | 847 |
面板http端口 859 | 860 | 开放公网端口 861 |
延迟启动 866 | 867 | 868 |
用户登录过期时间 873 | 874 | 小时 875 |
最大并发连接数 880 | 881 |
网站URL (site_url) 886 | 887 |
静态资源CDN地址 892 | 893 |
启用https 898 | 899 | 900 |
面板https端口 905 | 906 | 开放公网端口 907 |
强制跳转https 918 | 919 |
证书公钥Cert文件 (绝对路径) 924 | 925 |
证书私钥Key文件 (绝对路径) 930 | 931 |
934 |
935 |
936 | 937 | 938 | 939 |
940 |
941 |
942 |
  • 由于alist需要路由器较好性能,本插件仅支持hnd平台,AX32机型请慎重使用!
  • 943 |
  • 建议挂载U盘并配合usb2jffs和虚拟内存插件一起食用,口感更佳,否则可能会出现莫名的问题。
  • 944 |
  • 如有不懂,特别是alist配置文件的填写,请查看Alist官方文档点这里看文档
  • 945 |
  • 插件使用有任何问题请加入koolcenter TG群Mc Chat TG群联系 @fiswonder
  • 946 |
    947 |
    950 |
    953 |
    957 | 958 | 959 | 960 | 961 | -------------------------------------------------------------------------------- /build.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # _*_ coding:utf-8 _*_ 3 | 4 | import os 5 | import sys 6 | import json 7 | import codecs 8 | import hashlib 9 | from string import Template 10 | 11 | if sys.getdefaultencoding() != 'gbk': 12 | reload(sys) 13 | sys.setdefaultencoding('gbk') 14 | 15 | parent_path = os.path.dirname(os.path.realpath(__file__)) 16 | 17 | def md5sum(full_path): 18 | with open(full_path, 'rb') as rf: 19 | return hashlib.md5(rf.read()).hexdigest() 20 | 21 | def get_or_create(): 22 | conf_path = os.path.join(parent_path, "config.json.js") 23 | conf = {} 24 | if not os.path.isfile(conf_path): 25 | print u"config.json.js not found,build.py is root path. auto write config.json.js" 26 | module_name = os.path.basename(parent_path) 27 | conf["module"] = module_name 28 | conf["version"] = "0.0.1" 29 | conf["home_url"] = ("Module_%s.asp" % module_name) 30 | conf["title"] = "title of " + module_name 31 | conf["description"] = "description of " + module_name 32 | else: 33 | with codecs.open(conf_path, "r", "utf-8") as fc: 34 | conf = json.loads(fc.read()) 35 | return conf 36 | 37 | def build_module(): 38 | try: 39 | conf = get_or_create() 40 | except: 41 | print u"config.json.js file format is incorrect" 42 | traceback.print_exc() 43 | if "module" not in conf: 44 | print u" module is not in config.json.js" 45 | return 46 | module_path = os.path.join(parent_path, conf["module"]) 47 | if not os.path.isdir(module_path): 48 | print u"not found %s dir,check config.json.js is module ?" % module_path 49 | return 50 | install_path = os.path.join(parent_path, conf["module"], "install.sh") 51 | if not os.path.isfile(install_path): 52 | print u"not found %s file,check install.sh file" 53 | return 54 | print u"build..." 55 | 56 | open(parent_path + "/" + conf["module"] + "/" +"version", "w").write(conf["version"]) 57 | 58 | t = Template("cd $parent_path && rm -f $module.tar.gz && tar -zcf $module.tar.gz $module") 59 | os.system(t.substitute({"parent_path": parent_path, "module": conf["module"]})) 60 | conf["md5"] = md5sum(os.path.join(parent_path, conf["module"] + ".tar.gz")) 61 | conf_path = os.path.join(parent_path, "config.json.js") 62 | with codecs.open(conf_path, "w", "utf-8") as fw: 63 | json.dump(conf, fw, sort_keys = True, indent = 4, ensure_ascii=False, encoding='utf8') 64 | print u"build done", conf["module"] + ".tar.gz" 65 | #hook_path = os.path.join(parent_path, "backup.sh") 66 | #if os.path.isfile(hook_path): 67 | # os.system(hook_path) 68 | 69 | build_module() 70 | 71 | -------------------------------------------------------------------------------- /config.json.js: -------------------------------------------------------------------------------- 1 | { 2 | "author": "fiswonder, sadog", 3 | "description": "Alist. 一个支持多种存储的文件列表程序,使用 Gin 和 Solidjs", 4 | "home_url": "Module_alist.asp", 5 | "link": "https://github.com/everstu/Koolcenter_alist", 6 | "md5": "9263476a21bba333f27aa01e535ed509", 7 | "module": "alist", 8 | "tags": "云同步", 9 | "title": "Alist 文件列表", 10 | "version": "2.2.9" 11 | } --------------------------------------------------------------------------------