Skip to content

Commit

Permalink
chore: fix console redirect and address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rocheleau committed Dec 18, 2024
1 parent 7059e63 commit 13ace4a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions conf/minio.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ server {
error_log /var/log/bentov2_minio_errors.log;
}

location /minio/ui { return 302 https://${BENTOV2_DOMAIN}/minio/ui/; }
location /minio/ui { return 302 https://${BENTO_MINIO_DOMAIN}/minio/ui/; }
location /minio/ui/ {
# General reverse proxy settings
include /gateway/conf/proxy.conf;
Expand All @@ -62,13 +62,6 @@ server {
rewrite ^/minio/ui/(.*) /$1 break;
proxy_pass http://${BENTO_MINIO_CONTAINER_NAME}:${BENTO_MINIO_CONSOLE_PORT}$uri;

# Add sub_filter directives to rewrite base href
sub_filter '<base href="/"' '<base href="/minio/ui/"';
sub_filter_once on;
# Ensure sub_filter module is enabled
proxy_set_header Accept-Encoding "";
# Errors
error_log /var/log/bentov2_minio_errors.log;
}
Expand Down

0 comments on commit 13ace4a

Please sign in to comment.