訪問(wèn)minio的Object Brower報(bào)websocket disconnect,經(jīng)過(guò)排查是nginx轉(zhuǎn)發(fā)請(qǐng)求導(dǎo)致的問(wèn)題。需要在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; #這個(gè)配置也必須加上才能生效
proxy_pass http://minio_console/;
}
}
}