-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: subpath support using reverse proxy #2174
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional fix is needed, but it works fine.
@dvaldivia When will a new version that supports subpaths be released? |
I need to fix one behavior that this sub path breaks, so later this week |
@dvaldivia
export MINIO_ROOT_USER=minioadmin
export MINIO_ROOT_PASSWORD=minioadmin
export MINIO_BROWSER_REDIRECT_URL=https://minio.example.com/minio-console/
nohup minio server --console-address :39759 --config-dir /etc/minio /data/minio > /root/components/minio/minio.log 2>&1 &
When I start the console-ui alone, I don't find any problem. However, when the console-ui in minio, I find that it will access /api/v1/session on the login page, and then the response is not 401, and the page is blank. Could you please help me to see if there is something wrong with my configuration? |
I'm too not able to reverse proxy minio console on a subpath. These issues seem related:
Tried various workarounds but have not yet found a way to do it. Thankful for any hints or ideas... |
Thanks @mskyttner for the summary of various issues. I have documented my attempts at #2045 (comment) and also waiting for some hints/ideas/clarification on what is possible to support reverse-proxy subpath. |
@mskyttner @mcooknu
|
Hi everyone
Note: In this approach, I didn't expose any ports to the public and increased my server's security. Note: Since I used Here are my configuration files: Nginx Configuration
Environment Variables
Docker Compose Configuration
Dockerfile for Nginx
|
Minio console redirects using basepath as baseUrl. But react router does not set basename, so when I use reverse proxy, static resources are loaded normally, and basename is / during navigation. Also, the page will not be found on refresh