forked from yaso_meth/mih-project
minio storage fix pt6
This commit is contained in:
@@ -18,7 +18,7 @@ def minioConnect(env):
|
||||
else:
|
||||
return Minio(
|
||||
#"minio:9000",
|
||||
endpoint="minio.mzansi-innovation-hub.co.za:9000",
|
||||
endpoint="minio.mzansi-innovation-hub.co.za",
|
||||
access_key=minioAccess,
|
||||
secret_key=minioSecret,
|
||||
secure=True
|
||||
|
||||
@@ -137,6 +137,7 @@ services:
|
||||
environment:
|
||||
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
|
||||
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PW}
|
||||
MINIO_SERVER_URL: ${MINIO_SERVER_URL}
|
||||
networks:
|
||||
- MIH-network
|
||||
command: ["server", "/data", "--console-address", ":9001"]
|
||||
|
||||
@@ -271,7 +271,7 @@ http {
|
||||
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header Host $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;
|
||||
@@ -282,12 +282,12 @@ http {
|
||||
proxy_set_header Connection "";
|
||||
chunked_transfer_encoding off;
|
||||
|
||||
proxy_pass http://MIH-Minio:9000; # This uses the upstream directive definition to load balance
|
||||
proxy_pass http://minioAPI; # This uses the upstream directive definition to load balance
|
||||
}
|
||||
|
||||
location /minio/ui/ {
|
||||
rewrite ^/minio/ui/(.*) /$1 break;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header Host $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;
|
||||
@@ -308,7 +308,7 @@ http {
|
||||
|
||||
chunked_transfer_encoding off;
|
||||
|
||||
proxy_pass http://MIH-Minio:9001; # This uses the upstream directive definition to load balance
|
||||
proxy_pass http://minioUI; # This uses the upstream directive definition to load balance
|
||||
}
|
||||
|
||||
location ~ /.well-known/acme-challenge/ {
|
||||
|
||||
Reference in New Issue
Block a user