Skip to content

Comments

Rules for browser and s3 apis#1

Open
deekoder wants to merge 1 commit intokrishnasrinivas:multi-tenancyfrom
deekoder:patch-1
Open

Rules for browser and s3 apis#1
deekoder wants to merge 1 commit intokrishnasrinivas:multi-tenancyfrom
deekoder:patch-1

Conversation

@deekoder
Copy link

@deekoder deekoder commented Oct 6, 2017

No description provided.

}
location /ROML2P775VPAT7RLPOWU/ {
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:9000/;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the right config:

	   location ~* ^/ROML2P775VPAT7RLPOWU/(.*)$ {
	   	rewrite ^/ROML2P775VPAT7RLPOWU/(.*)$ /minio/$1 break;
	   	proxy_redirect     off;
	   	proxy_set_header Host $http_host;
	   	proxy_pass http://localhost:9001;
	   }

Adding this config here will make it harder to be grasped . Because most of the times users would not are not worried about accessing UI of multiple instances behind nginx.

What we can do is add a different section Accessing web-UI of multiple minio instances running behind reverse proxy and provide this configuration there:

server {
    listen       80;
	location / {
	    proxy_set_header Host $http_host;
	   location ~* ^/ROML2P775VPAT7RLPOWU/(.*)$ {
	   	rewrite ^/ROML2P775VPAT7RLPOWU/(.*)$ /minio/$1 break;
	   	proxy_redirect     off;
	   	proxy_set_header Host $http_host;
	   	proxy_pass http://localhost:9001;
	   }
	   location ~* ^/ENT3GYJCKCD1Q79XLP4C/(.*)$ {
	   	rewrite ^/ENT3GYJCKCD1Q79XLP4C/(.*)$ /minio/$1 break;
	   	proxy_redirect     off;
	   	proxy_set_header Host $http_host;
	   	proxy_pass http://localhost:9002;
	   }
	   location ~* ^/C988WQ23D98207ELOLPW/(.*)$ {
	   	rewrite ^/C988WQ23D98207ELOLPW/(.*)$ /minio/$1 break;
	   	proxy_redirect     off;
	   	proxy_set_header Host $http_host;
	   	proxy_pass http://localhost:9003;
	   }
     }
}

And mention in the doc saying that the web-UI can be accessed using the URLs:
http://nginxhost.com/ROML2P775VPAT7RLPOWU/
http://nginxhost.com/ENT3GYJCKCD1Q79XLP4C/
http://nginxhost.com/C988WQ23D98207ELOLPW/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants