Chase
September 24, 2022, 4:16pm
1
I installed baserow, and the current access address is: http//:10.x.x.x:80, but now I want to access baserow through http//:10.x.x.x:80/mybaserow, what should I do?
I have tried adding “homepage” in pakage.json, and also tried configuring location in nginx, but both failed
Alex
September 26, 2022, 7:31am
2
I don’t think that you can do that, given that our frontend router will always override the url to not include your prefix.
1 Like
nigel
September 26, 2022, 10:41am
3
See Allow running Baserow under an URL prefix (#1179) · Issues · Bram Wiepjes / baserow · GitLab for where we are tracking support for adding Baserow under a domain path prefix. For now you will have to run Baserow on it’s own domain if you want a separate URL for it.
1 Like
Chase
September 27, 2022, 2:59am
4
Hi nigel,I just saw your reply,In the same way as you provided, I solved the access and login problems by modifying the configuration file of nuxt.config.dev.js, and solved the connection problem of ws through the configuration of nginx.
But I try to use https://mybaserow.com/baserow to access baserow, just like the ISSUE: https://community.baserow.io/t/how-to-mount-baserow-to-url-path-e-g-https-mydomain-com-baserow/1269 , my media files and images in /static/img cannot be accessed, the error code is 404, I am trying to modify the environment variables PUBLIC_WEB_FRONTEND_URL and MEDIA_URL to solve it, but it seems to have no effect
Chase
September 27, 2022, 3:08am
5
Thank you for your reply. I can now access and log in to Baserow through http://10.x.x.x:80/mybaserow by modifying the configuration file of nuxt.
Of course, this is only a temporary modification of my own, just to test whether I can modify the URL to access baserow
1 Like
nigel
September 27, 2022, 9:11am
6
To clarify for future readers how did you configure your other Baserow environment variables?
In this situation if I was you I would set:
BASEROW_PUBLIC_URL=http://10.x.x.x:80/mybaserow
and not set or change any of the other URL
variables like PUBLIC_WEB_FRONTEND_URL
or MEDIA_URL
Chase
September 28, 2022, 2:03am
7
I set the environment variable as follows:
docker run -e PUBLIC_WEB_FRONTEND_URL=http://10.x.x.x:80:3000/mybaserow \
In fact, setting the environment variable is effective. The PUBLIC_WEB_FRONTEND_URL I set was wrong before, and now the Baserow can be used normally