1.需要先注册阿里云的codeup
2.创建仓库
3.设置https密码
## 客户端
upstream minio {
##minio服务器1,权重越高被分配到的几率越大
server 192.168.0.37:9001 weight=1;
##minio服务器2
server 192.168.0.38:9001 weight=1;
##minio服务器3
server 192.168.0.39:9001 weight=1;
}
server{
listen 9001;
server_name localhost;
location / {
proxy_pass http://minio;
# 添加websocket支持
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
# 客户端请求服务器最大允许大小-不限(文件大小)
client_max_body_size 0;
## 服务端
upstream minioServer {
##minio服务器1,权重越高被分配到的几率越大
server 192.168.0.37:9000 weight=1;
##minio服务器2
server 192.168.0.38:9000 weight=1;
##minio服务器3
server 192.168.0.39:9000 weight=1;
}
server{
listen 9000;
server_name localhost;
location / {
proxy_pass http://minioServer;
# 添加websocket支持
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
docker-compose 配置
登录nacos控制台(http://localhost:8848/nacos/), 访问命名空间 -> 新建命名空间
命名空间ID: 57d41ddd-c089-449f-8921-bd0e8af14ddc
命名空间名称:lamp-cloud
描述:lamp-cloud开源版