Hello,
We are trying to set up a single instance of baserow and to make it available on two different hostnames, a private and a public internet facing one:
We are using baserow docker-compose install (not the single image), here’s our .env file:
BASEROW_CADDY_ADDRESSES=https://baserow.intranet.lan
BASEROW_PUBLIC_URL=https://baserow.intranet.lan
DATABASE_PASSWORD=***
EMAIL_SMTP=nonempty
EMAIL_SMTP_HOST=smtp.intranet.lan
EMAIL_SMTP_PASSWORD:
EMAIL_SMTP_PORT=25
EMAIL_SMTP_USER:
EMAIL_SMTP_USE_TLS:
FROM_EMAIL=user@company.com
HOST_PUBLISH_IP=0.0.0.0
REDIS_PASSWORD=***
SECRET_KEY=***
WEB_FRONTEND_PORT=80
This works, baserow is accessible from baserow.intranet.lan (with a minor tweak to docker-compose.yml
to load our baserow.intranet.lan certificate) But we now also want to access it from the internet.
So we added an apache reverse proxy from baserow.intranet.lan to baserow.companydotcom. This works but the HTML code still referenced baserow.intranet.lan, preventing javascript and forms submission to work correctly.
Is that doable ? The end game is to allow only forms to be filled and submitted through the internet facing domain name (by configuring our reverse proxy to reject URI not beginning with /form/, /media/, etc.).
I tried tweaking BASEROW_EXTRA_ALLOWED_HOSTS
and BASEROW_CADDY_ADDRESSES
by adding both domains in different combination but it doesn’t work and I get a Backend URL mis-configuration detected
on the login page.
I thought BASEROW_EXTRA_ALLOWED_HOSTS
would do it but it’s not clear if this forces django to render URLs with hostname found in headers and in this variable or if it’s something else entirely.
Can baserow be setup to be accessible from two different domain in that way ?
Edit: There’s also the issue that Caddy tries to obtain a certificate from LE even though our reverse proxy terminates the SSL connection and setting up variables with baserow.companydotcom is problematic.
Thanks :).