diff --git a/backend/Minio_Storage/minioConnection.py b/backend/Minio_Storage/minioConnection.py index 0bf64504..e48be55e 100644 --- a/backend/Minio_Storage/minioConnection.py +++ b/backend/Minio_Storage/minioConnection.py @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index ccdadd2e..93d7531c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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"] diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 9f2734d5..107710a6 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -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/ {