Skip to content

Commit 59af80b

Browse files
authored
增加一处使用宝塔面板时应该修改的配置文件 (#345)
1 parent 64ad22c commit 59af80b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/guide/install/reverse-proxy.md

+6
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ If you use the bt.cn, be sure to delete the following default configuration
5252
:::
5353

5454

55+
Disable Nginx caching in `/www/server/nginx/conf/proxy.conf` or the corresponding website configuration file. Otherwise, with the default configuration, when accessing large files, Nginx will attempt to cache the remote file locally first, resulting in playback failures.
56+
```conf
57+
proxy_cache cache_one; # Remove this line
58+
proxy_max_temp_file_size 0; # Add this line
59+
```
60+
5561
### **Apache**
5662
Add the anti-generation configuration item ProxyPass under the VirtualHost field, such as:
5763
```xml

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

+7
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ proxy_set_header Host $host:$server_port;
6464
- location ~ .\*\.(js|css)?$
6565
```
6666

67+
并在`/www/server/nginx/conf/proxy.conf`中或对应网站配置文件中设置禁用Nginx缓存,否则默认配置下访问较大文件时Nginx会先尝试将远程文件缓存至本机,导致播放失败
68+
69+
```conf
70+
proxy_cache cache_one; # 删除这一行
71+
proxy_max_temp_file_size 0; #加上这一行
72+
```
73+
6774
:::
6875

6976
## **Apache**

0 commit comments

Comments
 (0)