各位同仁,大家好,在nginx,更何况minio,我还不强,就遇到了这样的问题。我有一台可以通过白 IP 访问的服务器,在这台服务器上部署了地址为 10.10.10.50 的虚拟机,我在这台 VM 上部署了 MinIO。服务器上有Nginx在10.10.10.50:9000转发流量,我用的是MinIO官网的Nginx配置,但是连接的时候报错“页面不可用,minio站点没有发送数据”。 . MinIO 工作 100% 转发 VPN 到服务器,从服务器网络可以使用 http://10.10.10.50:9000 的站点。绞尽脑汁的第三天,我放弃了
Debian11 上的服务器
nginx 配置
server {
listen 80;
listen [::]:80;
server_name minio;
# Allow special characters in headers
ignore_invalid_headers off;
# Allow any size file to be uploaded.
# Set to a value such as 1000m; to restrict file size to a specific value
client_max_body_size 0;
# Disable buffering
proxy_buffering off;
proxy_request_buffering off;
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://10.10.10.50:9000/; # This uses the upstream directive definition to load balance
}
}