意思就是,minio 的api 是9000.直接用域名代理了,能用
但是控制台,也就是9001 用nginx也能反代,也能进去,但是不能用.....删除桶都不可以
要不就是卡死,要不就是删除后出现
The specified bucket does not exist
还有一点.建桶也需要半天才有反应
不知道为什么,这是哪里有错误
[ol]MINIO_VOLUMES="/mnt/data"
MINIO_OPTS="-C /etc/minio --address :9000 --console-address :9001"
MINIO_ROOT_USER="管理员"
MINIO_ROOT_PASSWORD="密码"
MINIO_CONFIG_ENV_FILE=/etc/default/minio
MINIO_CI_CD="1"
MINIO_SERVER_URL="域名"
MINIO_BROWSER_REDIRECT_URL="控制台域名"[/ol]复制代码
反代配置写法,感觉没有错啊
[ol]
server {
listen 80;
#listen [::]:80;
server_name ;
其他
}
server {
listen 443 ssl http2;
#listen [::]:443 ssl http2;
server_name ;
其他
#根路径
root /usr/share/nginx/html/minio;
ignore_invalid_headers off;
client_max_body_size 0;
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_set_header X-NginX-Proxy true;
proxy_connect_timeout 300;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
real_ip_header X-Real-IP;
chunked_transfer_encoding off;
proxy_pass http://127.0.0.1:9001;
}
}
[/ol]复制代码