Skip to content

Commit

Permalink
add config and ilanzou (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
anwen-anyi authored Jan 6, 2024
1 parent 934ed35 commit 42039af
Show file tree
Hide file tree
Showing 17 changed files with 1,776 additions and 1,378 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
145 changes: 144 additions & 1 deletion docs/config/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,36 @@ After modifying the configuration file, restart AList for changes to take effect
},
"delayed_start": 0,
"max_connections": 0,
"tls_insecure_skip_verify": true
"tls_insecure_skip_verify": true,
"tasks": {
"download": {
"workers": 5,
"max_retry": 1
},
"transfer": {
"workers": 5,
"max_retry": 2
},
"upload": {
"workers": 5,
"max_retry": 0
},
"copy": {
"workers": 5,
"max_retry": 2
}
},
"cors": {
"allow_origins": [
"*"
],
"allow_methods": [
"*"
],
"allow_headers": [
"*"
]
}
}
```

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

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

<br/>



### **site_url**

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:
Expand All @@ -100,6 +133,10 @@ Do not include the slash \(`/`\) at the end of the address. For example:
"site_url": "https://al.nn.ci/",
```

<br/>



### **cdn**

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:
Expand All @@ -121,14 +158,26 @@ Thus it is possible to use any npm or GitHub CDN path for this field. For exampl

Keep empty to use local dist resources.

<br/>



### **jwt_secret**

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

<br/>



### **token_expires_in**

User login expiration time, in hours.

<br/>



### **database**

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

::::

<br/>



### **scheme**

The configuration of scheme. Set this field if using HTTPS.
Expand All @@ -213,6 +266,10 @@ The configuration of scheme. Set this field if using HTTPS.
},
```

<br/>



### **temp_dir**

The directory to keep temporary files. By default AList uses `data/temp`.
Expand All @@ -221,10 +278,18 @@ The directory to keep temporary files. By default AList uses `data/temp`.
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.
:::

<br/>



### **bleve_dir**

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

<br/>



### **log**

The log configuration. Set this field to save detailed logs of disable.
Expand All @@ -240,20 +305,98 @@ The log configuration. Set this field to save detailed logs of disable.
},
```

<br/>



### **delayed_start**

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

Whether to delay AList startup.
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.

<br/>



### **max_connections**

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

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

<br/>



### **tls_insecure_skip_verify**

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.

<br/>



### **tasks**

Configuration for background task threads.

```json
"tasks": {
"download": {
"workers": 5,
"max_retry": 1
},
"transfer": {
"workers": 5,
"max_retry": 2
},
"upload": {
"workers": 5,
"max_retry": 0
},
"copy": {
"workers": 5,
"max_retry": 2
}
}
```

- **workers**: Number of task threads.
- **max_retry**: Number of retries.
- 0: Retries disabled.

- **download**: Download task when downloading offline
- **transfer**: upload transfer task after offline download is completed
- **upload**: upload task
- **copy**: copy the task

<br/>



### **cors**

Configuration for Cross-Origin Resource Sharing (CORS).

```json
"cors": {
"allow_origins": [
"*"
],
"allow_methods": [
"*"
],
"allow_headers": [
"*"
]
}
```

- **allow_origins**: Allowed sources.
- **allow_methods**: Allowed request methods.
- **allow_headers**: Allowed request headers.

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.
6 changes: 3 additions & 3 deletions docs/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ A file list program that supports multiple storage, and supports web browsing an
- [x] Local storage
- [x] [Crypt](/guide/drivers/Crypt.md)
- [x] [Aliyundrive Open](../guide/drivers/aliyundrive_open.md)
- [x] [aliyundrive](https://www.aliyundrive.com/)
- [x] [aliyundrive](https://www.alipan.com/)
- [x] [OneDrive](./drivers/onedrive.md) /[APP](./drivers/onedrive_app.md)/ Sharepoint ([global](https://www.office.com/), [cn](https://portal.partner.microsoftonline.cn),de,us)
- [x] [189cloud](https://cloud.189.cn) (Personal, Family)
- [x] [GoogleDrive](https://drive.google.com/)
Expand All @@ -48,8 +48,8 @@ A file list program that supports multiple storage, and supports web browsing an
- [x] [BaiduNetdisk](https://pan.baidu.com/) / [share](./drivers/baidu_share.md)
- [x] [Quark](https://pan.quark.cn/)
- [x] [Thunder](https://pan.xunlei.com)
- [x] [Lanzou](https://www.lanzou.com/)
- [x] [Aliyundrive share](https://www.aliyundrive.com/)
- [x] [Lanzou](https://www.lanzou.com/)[NewLanzou](https://www.ilanzou.com)
- [x] [Aliyundrive share](https://www.alipan.com/)
- [x] [Google photo](https://photos.google.com/)
- [x] [Mega.nz](https://mega.nz)
- [x] [Baidu photo](https://photo.baidu.com/)
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/drivers/aliyundrive.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const onClick = async ()=>{

### **Root folder file_id**

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`:
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`:

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

Expand Down
6 changes: 3 additions & 3 deletions docs/guide/drivers/aliyundrive_open.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ typeof fetch !== "undefined" && getLimit()
</script>
::: info Aliyundrive VIP

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

- <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==
- <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==

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

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

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`

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
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`

Expand Down
60 changes: 60 additions & 0 deletions docs/guide/drivers/ilanzou.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
# This is the icon of the page
icon: iconfont icon-state
# This control sidebar order
order: 9
# A page can have multiple categories
category:
- Guide
# A page can have multiple tags
tag:
- Storage
- Guide
# this page is sticky in article list
sticky: true
# this page will appear in starred articles
star: true
---

# NewLanZou Cloud

ilanzou:https://ilanzou.com

## **root folder ID**

root folder ID the default is `0`,Other directory ID View the figure below obtaining method

<img src="/img/drivers/lanzou/ilanzou_folder.png" alt="LanZou folder_id" />

<br/>



## **username、password**

Just fill in your own NewLanzou Cloud Account Password

<br/>



### **The default download method used**

```mermaid
---
title: Which download method is used by default?
---
flowchart TB
style a1 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff
style a2 fill:#ff7575,stroke:#333,stroke-width:4px
subgraph ide1 [ ]
a1
end
a1[302]:::someclass====|default|a2[user equipment]
classDef someclass fill:#f96
c1[local proxy]-.alternative.->a2[user equipment]
b1[Download proxy URL]-.alternative.->a2[user equipment]
click a1 "../drivers/common.html#webdav-policy"
click b1 "../drivers/common.html#webdav-policy"
click c1 "../drivers/common.html#webdav-policy"
```
2 changes: 1 addition & 1 deletion docs/guide/install/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ ws.run "taskkill /f /im alist.exe",0
Wscript.quit
```

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

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

Expand Down
4 changes: 2 additions & 2 deletions docs/guide/webdav.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ Can't fill in? [Click to view Fill in Example](#webdav-fill-in-example)
1. **Windows**
- [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/)
2. **Android**
- [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)
- [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)
3. **IOS**
- [VidHub](https://okaapps.com/product/1659622164), Nplayer,[kmplayer](https://www.kmplayer.com/home),infuse,Fileball File Manager
4. **电视TV**
- [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)
- [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)
- If you only look at Ali, you can use Ali's official cooperation
- Huanshi store-Alibaba cloud disk TV version, online disk player-Alibaba cloud disk TV version
5. **Mac**
Expand Down
Loading

0 comments on commit 42039af

Please sign in to comment.