最近测试使用showdoc发现一个问题,具体情况如下:
图片存储配置为minio,endpoint配置为minio服务器的IP+端口,可以正常上传,但是如果使用nginx反向代理并且配置域名就无法上传。
nginx配置如下:
# minio
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
server_name xxx.com;
ssl_certificate ssl/fullchain.cer;
ssl_certificate_key ssl/xx.key;
ignore_invalid_headers off;
proxy_buffering off;
proxy_request_buffering off;
client_max_body_size 1G;
location / {
proxy_pass http://127.0.0.1:9002/;
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;
proxy_http_version 1.1;
proxy_set_header Connection "";
chunked_transfer_encoding off;
}
}
适用域名上传提示如下:
这是bug,还是我配置问题?