Skip to content

No access to buckets and policies in console when using reverse proxy subpath #2775

@beatstream69

Description

@beatstream69

No access to buckets and policies (and possibly something else?) in web console when using reverse proxy subpath

Expected Behavior

Web console try to access /subpath/api/v1/buckets and all is good

Current Behavior

Web console try to access /api/v1/buckets which is not working

Possible Solution

Revert to RELEASE.2023-03-24T21-41-23Z

Steps to Reproduce (for bugs)

set MINIO_BROWSER_REDIRECT_URL=https://example.com/subpath
start minio
try to open https://example.com/subpath/buckets
or https://example.com/subpath/policies

Regression

Yes, worked with docker image RELEASE.2023-03-24T21-41-23Z

Your Environment

  • Version used: RELEASE.2023-04-07T05-28-58Z (go1.20.3 linux/amd64)
  • Server setup and configuration: docker container, nginx reverse proxy
    Nginx relevant config:
server {
        root /var/www/html;
        index index.html index.htm index.nginx-debian.html;
        server_name example.com;
        listen 443 ssl;
        client_max_body_size 10G;
        proxy_read_timeout 3600;
        proxy_connect_timeout 3600;
        proxy_send_timeout 3600;
        proxy_cache off;
...
        location /subpath {
                rewrite   ^/subpath/(.*) /$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;
                real_ip_header X-Real-IP;
                proxy_connect_timeout 300;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                chunked_transfer_encoding off;
                proxy_pass http://192.168.0.201:9012;
        }
}
server {
        server_name example.com;
        listen 9011 ssl;
        ...<ssl config>...
        ignore_invalid_headers off;
        client_max_body_size 10G;
        proxy_buffering off;
        proxy_request_buffering off;
        location / {
                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;
                proxy_http_version 1.1;
                proxy_set_header Connection "";
                chunked_transfer_encoding off;
                proxy_pass http://192.168.0.201:9011;
        }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions