How to mount baserow to URL path (e.g. https://mydomain.com/baserow)

I am trying to set the BASEROW_PUBLIC_URL to: BASEROW_PUBLIC_URL=https://myaddress.com/baserow

Baserow is being served with the default docker container exposed on localhost:8080. This is then attached to the endpoint of an SSL configured Nginx Reverse Proxy.

		location /baserow {
			proxy_pass http://localhost:8080/;
			proxy_http_version 1.1;
			proxy_set_header Upgrade $http_upgrade;
			proxy_set_header Connection "Upgrade";
			proxy_set_header Host $host;
			proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        	        proxy_set_header X-Forwarded-Proto $scheme;
        	        proxy_set_header X-Real-IP $remote_addr;
		}

I am able to reach the Baserow UI but the root route has not been corrected to https://myaddress.com/baserow and the initial redirect reroutes the browser to https://myaddress.com/login instead of https://myaddress.com/baserow/login.

Any suggestions for this?

Baserow unfortunately doesn’t currently support running under some sort of url prefix. However I believe this is a very simple thing to fix as all we need to do is support setting the following property Nuxt - The router Property exposed by our web frontend framework nuxt (and also adjust the backend api urls).

I’ve created an issue tracking this problem here: Allow running Baserow under an URL prefix (#1179) · Issues · Bram Wiepjes / baserow · GitLab

For now i’m not sure you have any easy work arounds other than hosting Baserow on a subdomain or it’s own domain unfortunately. Perhaps there is some nginx magic that could trick Baserow into working correctly?

1 Like

Thanks for the response nigel. I’ll let you know if I find an nginx trick. However, the PR seems to be the right direction.