在truenas scale中安装完毕之后。使用nginx proxy manager 反代 其中一个端口为web管理端口,可以内网使用,不反代,一般网上教程为9001 而网上教程中的9000或9002则为api端口,需要反代。 这是nginx proxy manager反代用的高级配置
location / {
proxy_pass http://ip:port;
proxy_set_header Host $http_host;
proxy_redirect http:// https://;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
}
上述代码可以成功反代minio, region可以在设置里自定义,更改之后按提示重启就行。 path-style 的文件访问链接是 域名:端口/桶名/文件。 virtual-host-style 的文件访问链接是 region.域名/文件 使用自建s3进行同步时,一般推荐使用"path-style"。 minio使用一般是新建user, 再新建group关联user,创建key,最后创建桶 参考来源: https://www.luckzym.com/posts/82c8b27/ https://ld246.com/article/1672718436819
评论区