问题遇到的现象和发生背景
查看存储桶的列表时候报错
报错信息 Objects List unavailable. Please review your WebSockets configuration and try again
操作环境、软件版本等信息
我的 Linux 服务器是 Centos07
我的 minio 版本是
minio -version
minio version RELEASE.2023-06-02T23-17-26Z (commit-id=0649aca2195a8d3aef9b946337b4ca6581e23844)
Runtime: go1.19.9 linux/amd64
License: GNU AGPLv3 https://www. gnu.org/licenses/agpl-3.0.html
版权所有:2015-2023 MinIO, Inc.
尝试过的解决方法
nginx的配置文件
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 300;
# Default is HTTP/1, keepalive is only enabled in HTTP/1.1
proxy_http_version 1.1;
proxy_set_header Connection "";
chunked_transfer_encoding off;
proxy_pass http://192.168.0.4:9000/; # This uses the upstream directive definitio
n to load balance
}
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-NginX-Proxy true;
# This is necessary to pass the correct IP to be hashed
real_ip_header X-Real-IP;
proxy_connect_timeout 300;
# To support websocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
chunked_transfer_encoding off;
proxy_pass http://192.168.0.4:9100/; # This uses the upstream directive definitio
n to load balance and assumes a static Console port of 9001
}
我想要达到的结果
可以查看桶的列表信息