forked from yaso_meth/mih-project
.
This commit is contained in:
@@ -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/ {
|
||||
|
||||
Reference in New Issue
Block a user