Skip to content

Commit 42039af

Browse files
authored
add config and ilanzou (#311)
1 parent 934ed35 commit 42039af

File tree

17 files changed

+1776
-1378
lines changed

17 files changed

+1776
-1378
lines changed
Loading

docs/config/configuration.md

Lines changed: 144 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,36 @@ After modifying the configuration file, restart AList for changes to take effect
7171
},
7272
"delayed_start": 0,
7373
"max_connections": 0,
74-
"tls_insecure_skip_verify": true
74+
"tls_insecure_skip_verify": true,
75+
"tasks": {
76+
"download": {
77+
"workers": 5,
78+
"max_retry": 1
79+
},
80+
"transfer": {
81+
"workers": 5,
82+
"max_retry": 2
83+
},
84+
"upload": {
85+
"workers": 5,
86+
"max_retry": 0
87+
},
88+
"copy": {
89+
"workers": 5,
90+
"max_retry": 2
91+
}
92+
},
93+
"cors": {
94+
"allow_origins": [
95+
"*"
96+
],
97+
"allow_methods": [
98+
"*"
99+
],
100+
"allow_headers": [
101+
"*"
102+
]
103+
}
75104
}
76105
```
77106

@@ -81,6 +110,10 @@ After modifying the configuration file, restart AList for changes to take effect
81110

82111
By default AList reads the configuration from environment variables, set this field to `true` to force AList to read config from the configuration file.
83112

113+
<br/>
114+
115+
116+
84117
### **site_url**
85118

86119
The address of your AList server, such as `https://pan.nn.ci`. This address is essential for some features, and thus thry may not work properly if unset:
@@ -100,6 +133,10 @@ Do not include the slash \(`/`\) at the end of the address. For example:
100133
"site_url": "https://al.nn.ci/",
101134
```
102135

136+
<br/>
137+
138+
139+
103140
### **cdn**
104141

105142
The address of the CDN. Included `$version` values will be dynamically replaced by the version of AList. Existing dist resources are hosted on both npm and GitHub, which can be found at:
@@ -121,14 +158,26 @@ Thus it is possible to use any npm or GitHub CDN path for this field. For exampl
121158

122159
Keep empty to use local dist resources.
123160

161+
<br/>
162+
163+
164+
124165
### **jwt_secret**
125166

126167
The secret used to sign the JWT token, randomly generated on first run.
127168

169+
<br/>
170+
171+
172+
128173
### **token_expires_in**
129174

130175
User login expiration time, in hours.
131176

177+
<br/>
178+
179+
180+
132181
### **database**
133182

134183
The database configuration, which is by default `sqlite3`. Available options are `sqlite3`, `mysql` and `postgres`.
@@ -194,6 +243,10 @@ In PostgreSQL, the `ssl_mode` parameter is used to specify how the client uses S
194243

195244
::::
196245

246+
<br/>
247+
248+
249+
197250
### **scheme**
198251

199252
The configuration of scheme. Set this field if using HTTPS.
@@ -213,6 +266,10 @@ The configuration of scheme. Set this field if using HTTPS.
213266
},
214267
```
215268

269+
<br/>
270+
271+
272+
216273
### **temp_dir**
217274

218275
The directory to keep temporary files. By default AList uses `data/temp`.
@@ -221,10 +278,18 @@ The directory to keep temporary files. By default AList uses `data/temp`.
221278
temp_dir is a temporary folder exclusive to alist. In order to prevent AList from generating garbage files when being interrupted, the directory will be cleared every time AList starts, so do not store anything in this directory or map this directory & subdirectories to directories in use when using Docker.
222279
:::
223280

281+
<br/>
282+
283+
284+
224285
### **bleve_dir**
225286

226287
Where data is stored when using **`bleve`** index.
227288

289+
<br/>
290+
291+
292+
228293
### **log**
229294

230295
The log configuration. Set this field to save detailed logs of disable.
@@ -240,20 +305,98 @@ The log configuration. Set this field to save detailed logs of disable.
240305
},
241306
```
242307

308+
<br/>
309+
310+
311+
243312
### **delayed_start**
244313

245314
**Time unit: second** (new feature of v3.19.0)
246315

247316
Whether to delay AList startup.
248317
Generally this option is used when AList is configured to auto-start. The reason is that sometimes network takes some time to connect, so drivers requiring cannot start correctly after Alist starts.
249318

319+
<br/>
320+
321+
322+
250323
### **max_connections**
251324

252325
The maximum amount of connections at the same time. The default is 0, which is unlimited.
253326

254327
- 10 or 20 is recommended for general devices such as n1.
255328
- Usage Scenarios: the device will crash if the device is bad at concurrency when picture mode is enabled.
256329

330+
<br/>
331+
332+
333+
257334
### **tls_insecure_skip_verify**
258335

259336
Whether not to verify the SSL certificate. If there is a problem with the certificate of the website used when this option is not enabled (such as not including the intermediate certificate, having the certificate expired, or forging the certificate, etc.), the service will not be available. Run the program in a safe network environment when this option is enabled.
337+
338+
<br/>
339+
340+
341+
342+
### **tasks**
343+
344+
Configuration for background task threads.
345+
346+
```json
347+
"tasks": {
348+
"download": {
349+
"workers": 5,
350+
"max_retry": 1
351+
},
352+
"transfer": {
353+
"workers": 5,
354+
"max_retry": 2
355+
},
356+
"upload": {
357+
"workers": 5,
358+
"max_retry": 0
359+
},
360+
"copy": {
361+
"workers": 5,
362+
"max_retry": 2
363+
}
364+
}
365+
```
366+
367+
- **workers**: Number of task threads.
368+
- **max_retry**: Number of retries.
369+
- 0: Retries disabled.
370+
371+
- **download**: Download task when downloading offline
372+
- **transfer**: upload transfer task after offline download is completed
373+
- **upload**: upload task
374+
- **copy**: copy the task
375+
376+
<br/>
377+
378+
379+
380+
### **cors**
381+
382+
Configuration for Cross-Origin Resource Sharing (CORS).
383+
384+
```json
385+
"cors": {
386+
"allow_origins": [
387+
"*"
388+
],
389+
"allow_methods": [
390+
"*"
391+
],
392+
"allow_headers": [
393+
"*"
394+
]
395+
}
396+
```
397+
398+
- **allow_origins**: Allowed sources.
399+
- **allow_methods**: Allowed request methods.
400+
- **allow_headers**: Allowed request headers.
401+
402+
Use it to understand it by yourself, and then configure it. If you do n’t know, please do n’t modify it at will. Use the default configuration.

docs/guide/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ A file list program that supports multiple storage, and supports web browsing an
2727
- [x] Local storage
2828
- [x] [Crypt](/guide/drivers/Crypt.md)
2929
- [x] [Aliyundrive Open](../guide/drivers/aliyundrive_open.md)
30-
- [x] [aliyundrive](https://www.aliyundrive.com/)
30+
- [x] [aliyundrive](https://www.alipan.com/)
3131
- [x] [OneDrive](./drivers/onedrive.md) /[APP](./drivers/onedrive_app.md)/ Sharepoint ([global](https://www.office.com/), [cn](https://portal.partner.microsoftonline.cn),de,us)
3232
- [x] [189cloud](https://cloud.189.cn) (Personal, Family)
3333
- [x] [GoogleDrive](https://drive.google.com/)
@@ -48,8 +48,8 @@ A file list program that supports multiple storage, and supports web browsing an
4848
- [x] [BaiduNetdisk](https://pan.baidu.com/) / [share](./drivers/baidu_share.md)
4949
- [x] [Quark](https://pan.quark.cn/)
5050
- [x] [Thunder](https://pan.xunlei.com)
51-
- [x] [Lanzou](https://www.lanzou.com/)
52-
- [x] [Aliyundrive share](https://www.aliyundrive.com/)
51+
- [x] [Lanzou](https://www.lanzou.com/)[NewLanzou](https://www.ilanzou.com)
52+
- [x] [Aliyundrive share](https://www.alipan.com/)
5353
- [x] [Google photo](https://photos.google.com/)
5454
- [x] [Mega.nz](https://mega.nz)
5555
- [x] [Baidu photo](https://photo.baidu.com/)

docs/guide/drivers/aliyundrive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const onClick = async ()=>{
116116

117117
### **Root folder file_id**
118118

119-
Open the official website of Aliyundrive and click the string behind the url when you click into the folder you want to set, such as https://www.aliyundrive.com/drive/folder/5fe01e1830601baf774e4827a9fb8fb2b5bf7940, which is `5fe01e1830601baf774e4827a9fb8fb2b5bf7940`:
119+
Open the official website of Aliyundrive and click the string behind the url when you click into the folder you want to set, such as https://www.alipan.com/drive/folder/5fe01e1830601baf774e4827a9fb8fb2b5bf7940, which is `5fe01e1830601baf774e4827a9fb8fb2b5bf7940`:
120120

121121
![file_id](/img/drivers/aliyundrive.png)
122122

docs/guide/drivers/aliyundrive_open.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ typeof fetch !== "undefined" && getLimit()
3939
</script>
4040
::: info Aliyundrive VIP
4141

42-
**Aliyundrive VIP**[https://www.aliyundrive.com/cpx/member](https://www.aliyundrive.com/cpx/member?userCode=MzAwMDM1&disableNav=YES)
42+
**Aliyundrive VIP**[https://www.alipan.com/cpx/member](https://www.alipan.com/cpx/member?userCode=MzAwMDM1&disableNav=YES)
4343

44-
- <i class="fa-solid fa-lightbulb fa-bounce" style="color: orange;"></i> Click the link to get [**Coupon**](https://www.aliyundrive.com/cpx/member?userCode=MzAwMDM1&disableNav=YES), 11.11 Promotion! Historical base price! The original price of 30%paid SVIP and given an additional 3 -month SVIP. [**immediately buy**](https://www.aliyundrive.com/cpx/member?userCode=MzAwMDM1&disableNav=YES) The original price of 30%paid SVIP and given an additional 3 -month SVIP. ==Only 10,000 copies==
44+
- <i class="fa-solid fa-lightbulb fa-bounce" style="color: orange;"></i> Click the link to get [**Coupon**](https://www.alipan.com/cpx/member?userCode=MzAwMDM1&disableNav=YES), 11.11 Promotion! Historical base price! The original price of 30%paid SVIP and given an additional 3 -month SVIP. [**immediately buy**](https://www.alipan.com/cpx/member?userCode=MzAwMDM1&disableNav=YES) The original price of 30%paid SVIP and given an additional 3 -month SVIP. ==Only 10,000 copies==
4545

4646
<img src="/img/drivers/aliyun/vip2.png" alt="vip2" style="zoom:30%;" />
4747

@@ -98,7 +98,7 @@ Go to:**https://alist.nn.ci/tool/aliyundrive/request**
9898

9999
The default is `root`, which displays all cloud disk contents. If you only want to display the contents of a certain folder, you can change it to `file_id`
100100

101-
Open the official website of Aliyundrive and click the string behind the url when you click into the folder you want to set, such as https://www.aliyundrive.com/drive/folder/5fe01e1830601baf774e4827a9fb8fb2b5bf7940
101+
Open the official website of Aliyundrive and click the string behind the url when you click into the folder you want to set, such as https://www.alipan.com/drive/folder/5fe01e1830601baf774e4827a9fb8fb2b5bf7940
102102

103103
which is `5fe01e1830601baf774e4827a9fb8fb2b5bf7940`
104104

docs/guide/drivers/ilanzou.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
# This is the icon of the page
3+
icon: iconfont icon-state
4+
# This control sidebar order
5+
order: 9
6+
# A page can have multiple categories
7+
category:
8+
- Guide
9+
# A page can have multiple tags
10+
tag:
11+
- Storage
12+
- Guide
13+
# this page is sticky in article list
14+
sticky: true
15+
# this page will appear in starred articles
16+
star: true
17+
---
18+
19+
# NewLanZou Cloud
20+
21+
ilanzou:https://ilanzou.com
22+
23+
## **root folder ID**
24+
25+
root folder ID the default is `0`,Other directory ID View the figure below obtaining method
26+
27+
<img src="/img/drivers/lanzou/ilanzou_folder.png" alt="LanZou folder_id" />
28+
29+
<br/>
30+
31+
32+
33+
## **username、password**
34+
35+
Just fill in your own NewLanzou Cloud Account Password
36+
37+
<br/>
38+
39+
40+
41+
### **The default download method used**
42+
43+
```mermaid
44+
---
45+
title: Which download method is used by default?
46+
---
47+
flowchart TB
48+
style a1 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff
49+
style a2 fill:#ff7575,stroke:#333,stroke-width:4px
50+
subgraph ide1 [ ]
51+
a1
52+
end
53+
a1[302]:::someclass====|default|a2[user equipment]
54+
classDef someclass fill:#f96
55+
c1[local proxy]-.alternative.->a2[user equipment]
56+
b1[Download proxy URL]-.alternative.->a2[user equipment]
57+
click a1 "../drivers/common.html#webdav-policy"
58+
click b1 "../drivers/common.html#webdav-policy"
59+
click c1 "../drivers/common.html#webdav-policy"
60+
```

docs/guide/install/manual.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ ws.run "taskkill /f /im alist.exe",0
201201
Wscript.quit
202202
```
203203

204-
1. If the script will not be created, you can download it yourself: [**Script Download**](https://www.aliyundrive.com/s/DHPMhRtKUzY/folder/63e0961eae317bd4d4d945cda69dbb00f9837fb7)
204+
1. If the script will not be created, you can download it yourself: [**Script Download**](https://www.alipan.com/s/DHPMhRtKUzY/folder/63e0961eae317bd4d4d945cda69dbb00f9837fb7)
205205

206206
2. If the script will not be used, you can watch the video: [**reference video**](https://www.bilibili.com/video/BV1DG411s7j5?t=266.2)
207207

docs/guide/webdav.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ Can't fill in? [Click to view Fill in Example](#webdav-fill-in-example)
6262
1. **Windows**
6363
- [Potplayer](https://potplayer.daum.net/)[kmplayer](https://www.kmplayer.com/home),RaiDrive,[kodi](https://kodi.tv/download)[OneCommander](https://www.onecommander.com/)[Mountain Duck](https://mountainduck.io/)[netdrive](https://www.netdrive.net/):x:[rclone](https://rclone.org/), [AIMP](https://www.aimp.ru/)
6464
2. **Android**
65-
- [Nplayer](https://www.aliyundrive.com/s/cf3p39UXkxa)[kmplayer](https://www.kmplayer.com/home),ES File Manager,[kodi](https://kodi.tv/download)[nova nova magic change](https://www.aliyundrive.com/s/cf3p39UXkxa/folder/63e8dcc229204583fff34f8cbd53dfcd6a86f526)[reex](https://www.aliyundrive.com/s/cf3p39UXkxa/folder/63e8e0027b7473f82cc64bbb9be0a34794c32c07),cx File Manager,Solid Explorer, [X-plore File Manager](https://www.lonelycatgames.com/apps/xplore)
65+
- [Nplayer](https://www.alipan.com/s/cf3p39UXkxa)[kmplayer](https://www.kmplayer.com/home),ES File Manager,[kodi](https://kodi.tv/download)[nova nova magic change](https://www.alipan.com/s/cf3p39UXkxa/folder/63e8dcc229204583fff34f8cbd53dfcd6a86f526)[reex](https://www.alipan.com/s/cf3p39UXkxa/folder/63e8e0027b7473f82cc64bbb9be0a34794c32c07),cx File Manager,Solid Explorer, [X-plore File Manager](https://www.lonelycatgames.com/apps/xplore)
6666
3. **IOS**
6767
- [VidHub](https://okaapps.com/product/1659622164), Nplayer,[kmplayer](https://www.kmplayer.com/home),infuse,Fileball File Manager
6868
4. **电视TV**
69-
- [VidHub](https://okaapps.com/product/1659622164), [Nplayer](https://www.aliyundrive.com/s/cf3p39UXkxa)[kodi](https://kodi.tv/download)[nova nova magic change](https://www.aliyundrive.com/s/cf3p39UXkxa/folder/63e8dcc229204583fff34f8cbd53dfcd6a86f526)
69+
- [VidHub](https://okaapps.com/product/1659622164), [Nplayer](https://www.alipan.com/s/cf3p39UXkxa)[kodi](https://kodi.tv/download)[nova nova magic change](https://www.alipan.com/s/cf3p39UXkxa/folder/63e8dcc229204583fff34f8cbd53dfcd6a86f526)
7070
- If you only look at Ali, you can use Ali's official cooperation
7171
- Huanshi store-Alibaba cloud disk TV version, online disk player-Alibaba cloud disk TV version
7272
5. **Mac**

0 commit comments

Comments
 (0)