Skip to content

Commit

Permalink
update reverse-proxy.md (#237)
Browse files Browse the repository at this point in the history
Co-authored-by: hiqz <[email protected]>
  • Loading branch information
Troray and cncpu authored Jul 12, 2023
1 parent b14783c commit 157ad31
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 10 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 17 additions & 5 deletions docs/guide/install/reverse-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,24 @@ Add the reverse_proxy configuration item reverse_proxy under the Caddyfile file,
}
```

### **A simple demonstration of setting up a reverse proxy in Pagoda**
## **Demonstration of Setting up Reverse Proxy in BT Panel**

First create a new site, **Alist Launcher** does not matter whether it is in the site folder, and then add it as shown in the figure below.
#### 1.Login to the BT panel and add a new website.

- ==Also, if you want to use Pagoda to open **SSL(HTTPS)**, you need to add it before the reverse proxy, otherwise you cannot open SSL==
- If you have already added a reverse proxy, you can stop it first **(the one in the picture that turns on the proxy button can just turn it off)**, enable SSL and then turn on the reverse proxy
![bt_new_website](/img/guide/reverse_proxy/bt_new_website.png)

#### 2.Modify the website settings.

![BT](https://alist-doc.nn.ci/assets/images/BT-Proxy-5913c3786afba1417362c71f0af73ea9.png)
![bt_new_website_01](/img/guide/reverse_proxy/bt_new_website_01.png)

#### 3.Remove the default panel code.

![bt_delete_default_config_01](/img/guide/reverse_proxy/bt_delete_default_config_01.png)

![bt_delete_default_config_02](/img/guide/reverse_proxy/bt_delete_default_config_02.png)

#### 4.Add the reverse proxy.

![bt_reverse_proxy](/img/guide/reverse_proxy/bt_reverse_proxy.png)

> If you need to apply for an `SSL certificate`, you can first apply for the certificate in the `SSL` option, and then set up the reverse proxy. Alternatively, you can set up the reverse proxy first, disable the proxy function, apply for an `SSL` certificate, and then enable the proxy again.
23 changes: 18 additions & 5 deletions docs/zh/guide/install/reverse-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,24 @@ example.com {
将 `example.com` 替换为你自己解析后的域名。
```
## **宝塔设置反向代理简单示范**
## **宝塔设置反向代理示范**

首先新建一个站点,**Alist启动程序** 在不在这个站点文件夹内都无所谓,然后照着下图添加即可。
#### 1.登录宝塔面板,添加站点;

- ==还有就是如果你要用宝塔开启 **SSL(HTTPS)**, 你需要在反向代理之前添加不然无法开启SSL==
- 如果你已经添加了反向代理,可以先停止 **(图片里面哪个开启代理按钮关了它就行)** ,开启了SSL再把反向代理打开即可
![bt_new_website](/img/guide/reverse_proxy/bt_new_website.png)

![BT](https://alist-doc.nn.ci/assets/images/BT-Proxy-5913c3786afba1417362c71f0af73ea9.png)
#### 2.修改站点设置;

![bt_new_website_01](/img/guide/reverse_proxy/bt_new_website_01.png)

#### 3.删除面板默认代码;

![bt_delete_default_config_01](/img/guide/reverse_proxy/bt_delete_default_config_01.png)

![bt_delete_default_config_02](/img/guide/reverse_proxy/bt_delete_default_config_02.png)

#### 4.添加反向代理;

![bt_reverse_proxy](/img/guide/reverse_proxy/bt_reverse_proxy.png)

> 如需申请`SSL`证书,可先在`SSL`选项中申请证书,然后在设置反向代理。或者设置反向代理之后,关闭反向代理功能,申请`SSL`证书后再次开启代理。

0 comments on commit 157ad31

Please sign in to comment.