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#1deekoder wants to merge 1 commit intokrishnasrinivas:multi-tenancyfrom deekoder:patch-1
deekoder wants to merge 1 commit intokrishnasrinivas:multi-tenancyfrom
deekoder:patch-1
Conversation
| } | ||
| location /ROML2P775VPAT7RLPOWU/ { | ||
| proxy_set_header Host $http_host; | ||
| proxy_pass http://127.0.0.1:9000/; |
Owner
There was a problem hiding this comment.
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/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.