Skip to content

Commit 65174ad

Browse files
committed
fix some issues
- aliyundrive alert - reverse proxy with sub folder
1 parent 4b85273 commit 65174ad

File tree

10 files changed

+30
-10
lines changed

10 files changed

+30
-10
lines changed

docs/faq/howto.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,19 @@ Add a [meta](../guide/advanced/meta.md) record.
2626

2727
An example of using nginx to reverse proxy to https://nn.ci/alist:
2828
- Normal installation
29-
- Set [Api url](../config/site.md#api-url) to `https://nn.ci/alist`, [Base path](../config/site.md#base-path) to `alist` and click save button
29+
- Set [site_url](../config/configuration.md#site_url) to `https://nn.ci/alist` or just `/alist` then restart alist
3030
- Add a reverse proxy record in nginx
31+
3132
```nginx
3233
location /alist/ {
3334
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
35+
proxy_set_header X-Forwarded-Proto $scheme;
3436
proxy_set_header Host $http_host;
3537
proxy_set_header X-Real-IP $remote_addr;
3638
proxy_set_header Range $http_range;
3739
proxy_set_header If-Range $http_if_range;
3840
proxy_redirect off;
39-
proxy_pass http://127.0.0.1:5244/;
41+
proxy_pass http://127.0.0.1:5244/alist/;
4042
# the max size of file to upload
4143
client_max_body_size 20000m;
4244
}

docs/guide/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Guide
2+
title: Introduction
33
index: false
44
icon: creative
55
category:

docs/guide/drivers/aliyundrive.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ star: true
1818

1919
# Aliyundrive / share
2020

21+
:::warning
22+
23+
This driver is not recommended for use, because it is not stable and may be blocked at any time and we will remove it in a future version.
24+
We recommend using the official driver [Aliyundrive Open](./aliyundrive_open.md).
25+
26+
:::
27+
2128
:::tip
2229

2330
Due to the limitation of the referrer of Aliyundrive, the mobile token must be used. Using the desktop web token will result in failure to download and preview.

docs/guide/drivers/aliyundrive_open.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ star: true
2020

2121
:::tip
2222

23-
Ali cloud disk open, using the official authorization API document development.
23+
Aliyundrive Open, using the official authorization API development.
2424

2525
:::
2626

@@ -58,4 +58,4 @@ which is `5fe01e1830601baf774e4827a9fb8fb2b5bf7940`
5858

5959
### Client id,Client secret
6060

61-
Normal users don’t need to fill in the blank. If they apply for official authorization, they can also use their own to fill in. If it is blank, the default is to use the one provided by Alist.
61+
Normal users don’t need to fill in the blank. If they apply for official authorization, they can also use their own to fill in. If it is blank, the default is to use the one provided by AList.

docs/guide/install/reverse-proxy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ star: true
2121
# Reverse proxy
2222
The program listens to port 5244 by default. If you do `reverse proxy`, recommended you set [site_url](../../config/configuration.md#site_url) so that alist can works fine.
2323

24+
> If you want to use a sub folder, refer to [reverse proxy with sub folder](../../faq/howto.md#how-to-reverse-proxy-with-sub-directory)
25+
2426
### nginx
2527
Add in the server field of the website configuration file
2628
```nginx

docs/zh/faq/howto.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,19 @@ star: true
2727
使用 nginx 反向代理到 https://nn.ci/alist 的示例:
2828

2929
- 正常安装
30-
-[API url](../config/site.md#api-url) 设置为 `https://nn.ci/alist`, [Base path](../config/site.md#base-path)`alist` 并点击保存按钮
30+
-[site_url](../config/configuration.md#site_url) 设置为 `https://nn.ci/alist` 或者仅`/alist`, 然后重启alist
3131
- 在 nginx 中添加反向代理配置
3232

3333
```nginx
3434
location /alist/ {
3535
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
36+
proxy_set_header X-Forwarded-Proto $scheme;
3637
proxy_set_header Host $http_host;
3738
proxy_set_header X-Real-IP $remote_addr;
3839
proxy_set_header Range $http_range;
3940
proxy_set_header If-Range $http_if_range;
4041
proxy_redirect off;
41-
proxy_pass http://127.0.0.1:5244/;
42+
proxy_pass http://127.0.0.1:5244/alist/;
4243
# the max size of file to upload
4344
client_max_body_size 20000m;
4445
}

docs/zh/guide/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Guide
2+
title: Introduction
33
index: false
44
icon: creative
55
category:

docs/zh/guide/drivers/aliyundrive.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ star: true
1818

1919
# 阿里云盘/分享
2020

21+
:::warning
22+
23+
不推荐使用该驱动,因为它不稳定,随时可能被屏蔽,我们会在以后的版本中移除。推荐使用官方API的驱动 [Aliyundrive Open](./aliyundrive_open.md)
24+
25+
:::
26+
2127
:::tip
2228

2329
由于阿里云盘 referer 的限制,必须使用移动端 token。 使用桌面 Web 令牌将导致无法下载和预览。

docs/zh/guide/drivers/aliyundrive_open.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ star: true
2020

2121
:::tip
2222

23-
阿里云盘open,使用的是官方授权API文档开发
23+
阿里云盘open,使用的是官方授权API开发
2424

2525
:::
2626

@@ -60,4 +60,4 @@ star: true
6060

6161
### Client id,Client secret
6262

63-
正常用户不需要填写为空即可,如果自己申请了官方授权也可以使用自己的进行填写,为空时默认使用Alist提供的
63+
正常用户不需要填写为空即可,如果自己申请了官方授权也可以使用自己的进行填写,为空时默认使用AList提供的

docs/zh/guide/install/reverse-proxy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ star: true
2222

2323
程序默认监听 5244 端口。如有修改,请一并修改下列配置中的端口号。如果你使用反向代理,建议你设置[site_url](../../config/configuration.md#site_url),以帮助alist更好的工作。
2424

25+
> 如果你想使用子目录,参考[这里](../../faq/howto.md#如何对子目录进行反向代理)
26+
2527
## nginx
2628

2729
在网站配置文件的 server 字段中添加

0 commit comments

Comments
 (0)