From 141fc16e0c97c6e390250ba1afc5fa7d76997c26 Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Thu, 18 Jul 2024 15:35:52 +0200 Subject: [PATCH] . --- nginx/nginx.conf | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index cb42b948..e6c2fc8b 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -26,6 +26,17 @@ http { return 301 https://$host$request_uri; } + server { + listen 9000; + + server_name _; + + location / { + proxy_pass http://MIH-Minio:9000/; + } + # return 301 https://$host$request_uri; + } + server { listen 443 ssl; http2 on; @@ -57,17 +68,17 @@ http { #Minio storage location /files/ui/ { - rewrite ^/files/ui/(.*) /$1 break; - 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; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; + # rewrite ^/files/ui/(.*) /$1 break; + # 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; + # proxy_set_header X-Forwarded-Proto $scheme; + # proxy_set_header X-NginX-Proxy true; - # This is necessary to pass the correct IP to be hashed - real_ip_header X-Real-IP; + # # This is necessary to pass the correct IP to be hashed + # real_ip_header X-Real-IP; - proxy_connect_timeout 300; + # proxy_connect_timeout 300; # To support websockets in MinIO versions released after January 2023 # proxy_http_version 2; @@ -77,9 +88,9 @@ http { # Uncomment the following line to set the Origin request to an empty string # proxy_set_header Origin ''; - chunked_transfer_encoding off; + # chunked_transfer_encoding off; - proxy_pass http://MIH-Minio:9001; + proxy_pass http://mzansi-innovation-hub.co.za:9001; } #Minio storage API @@ -95,7 +106,7 @@ http { # proxy_set_header Connection ""; # chunked_transfer_encoding off; - proxy_pass http://MIH-Minio:9000; + proxy_pass http://mzansi-innovation-hub.co.za:9000; } # location /phpmyadmin/ {