Hi there, I wonder if anyone have similar challenge as below.
I would like to hide the url string of the public link as it contains the path to the metabase login page.
But when I configure proxy on my Nginx as below, it shows blank page and 404 error on the access log.
location /mblogin/ {
proxy_pass http://127.0.0.1:3000/; # this works
}
location /public1/ {
proxy_pass https://metabase.[mydomain]/mblogin/public/dashboard/061ca8e1-8da8-4a31-9ae0-ae70d74cccf7/; # this doesn't work.
}
Kindly advise if there is a practice to hide the public link behind the proxy of nginx.
Please advise if I had better to share any other configuration information or logs.
Hi @sotaro27
What is your Site URL configured to? Make sure it matches how people are accessing Metabase.
You would have to create rewrites for all the assets too.
I don't understand what the problem is by showing the location of the login.
Thank you for your reply. Yes, I have configured my site URL as https://metabase.[mydomain]/mblogin, which is the same URL as I configured it in the location path. Let me extend the nginx configuration until server_name part.
@sotaro27
Please explain what the point is of hiding the address.
You would need to either create rewrites for the 404 paths or use substitute to change the URLs.
Metabase does not officially support running in non-root, so there are some issues around that.