From 4a3360bf06275d356484024cba04a6e50654bc4c Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Thu, 18 Jul 2024 15:57:26 +0200 Subject: [PATCH] . --- nginx/nginx.conf | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index c485d023..a6f7715d 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -7,15 +7,15 @@ http { server_tokens off; charset utf-8; - # upstream minioUI { - # least_conn; - # server minio:9001; - # } + upstream minioUI { + least_conn; + server minio:9001; + } - # upstream minioAPI { - # least_conn; - # server minio:9000; - # } + upstream minioAPI { + least_conn; + server minio:9000; + } # always redirect to https server { @@ -67,7 +67,7 @@ http { } #Minio storage - location /mih/ui/ { + location /files/ui/ { # rewrite ^/files/ui/(.*) /$1 break; # proxy_set_header Host $http_host; # proxy_set_header X-Real-IP $remote_addr; @@ -90,11 +90,11 @@ http { # chunked_transfer_encoding off; - proxy_pass http://MIH-Minio:9001/; + proxy_pass http://minioUI:9001/; } #Minio storage API - location /mih/ { + location /files/ { # 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; @@ -106,7 +106,7 @@ http { # proxy_set_header Connection ""; # chunked_transfer_encoding off; - proxy_pass http://MIH-Minio:9000/; + proxy_pass http://minioAPI:9000/; } # location /phpmyadmin/ {