.
This commit is contained in:
@@ -7,10 +7,14 @@ http {
|
|||||||
server_tokens off;
|
server_tokens off;
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
|
||||||
upstream minio {
|
upstream minioUI {
|
||||||
server minio:9001;
|
server minio:9001;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
upstream minioAPI {
|
||||||
|
server minio:9000;
|
||||||
|
}
|
||||||
|
|
||||||
# always redirect to https
|
# always redirect to https
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
@@ -50,6 +54,22 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#Minio storage
|
#Minio storage
|
||||||
|
location /files/UI/ {
|
||||||
|
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_connect_timeout 300;
|
||||||
|
# Default is HTTP/1, keepalive is only enabled in HTTP/1.1
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Connection "";
|
||||||
|
chunked_transfer_encoding off;
|
||||||
|
|
||||||
|
proxy_pass http://minioUI/login;
|
||||||
|
}
|
||||||
|
|
||||||
|
#Minio storage API
|
||||||
location /files/ {
|
location /files/ {
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
@@ -62,7 +82,7 @@ http {
|
|||||||
proxy_set_header Connection "";
|
proxy_set_header Connection "";
|
||||||
chunked_transfer_encoding off;
|
chunked_transfer_encoding off;
|
||||||
|
|
||||||
proxy_pass http://minio/login;
|
proxy_pass http://minioAPI;
|
||||||
}
|
}
|
||||||
|
|
||||||
# location /phpmyadmin/ {
|
# location /phpmyadmin/ {
|
||||||
|
|||||||
Reference in New Issue
Block a user