訪問minio的Object Brower報websocket disconnect将塑,經(jīng)過排查是nginx轉發(fā)請求導致的問題跛蛋。需要在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/;
}
}
}