访问minio的Object Brower报websocket disconnect,经过排查是nginx转发请求导致的问题。需要在nginx中配置支持websocket
http {
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name store.domain.com;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host; #这个配置也必须加上才能生效
proxy_pass http://minio_console/;
}
}
}
网友评论