Skip to content

Commit b7ef1f8

Browse files
committed
doc: FAQ on minio through nginx (cloudreve/cloudreve#2397)
1 parent fe71c58 commit b7ef1f8

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

en/usage/storage/minio.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,16 @@ Check `Settings` -> `Filesystem` -> `Upload session TTL (seconds)`, its value sh
4242
2. Check if there is an external WAF firewall blocking the upload request.
4343

4444
:::
45+
46+
::: details Using a MinIO endpoint after reverse proxy, I cannot upload or perform any file operations.
47+
48+
1. If the reverse proxy endpoint contains a port, when configuring Nginx, set `proxy_set_header` to `$http_host`:
49+
50+
```nginx
51+
proxy_set_header Host $host; # [!code --]
52+
proxy_set_header Host $http_host; # [!code ++]
53+
```
54+
55+
2. If the file creation and deletion operations are OK, but you cannot upload files from the Web client, try adding `proxy_cache_convert_head off;` to the Nginx reverse proxy configuration.
56+
57+
:::

zh/usage/storage/minio.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,16 @@ MinIO 不需要配置跨域策略,点击 `我已自行设置` 跳过跨域策
4242
2. 检查是否有外部 WAF 防火墙拦截了上传请求。
4343

4444
:::
45+
46+
::: details 使用 Nginx 反代后的 MinIO 端点,无法上传或进行任何文件操作。
47+
48+
1. 如果你的反代后的端点包含了端口号,在配置 Nginx 时,请将 `proxy_set_header` 设定为 `$http_host`:
49+
50+
```nginx
51+
proxy_set_header Host $host; # [!code --]
52+
proxy_set_header Host $http_host; # [!code ++]
53+
```
54+
55+
2. 如果文件新建、删除操作正常,但是无法从 Web 端上传文件,请尝试在 Nginx 反代配置中加入 `proxy_cache_convert_head off;`
56+
57+
:::

0 commit comments

Comments
 (0)