Error: Could not connect to the API server

Hi @nigel ,

Thanks for getting back to me!

The operating system is: Ubuntu 20.04.5 LTS

I’m following your instructions from the official Baserow install page: https://baserow.io/docs/installation/install-on-ubuntu

Drawing on this, this is how I start the container:

docker run -e BASEROW_PUBLIC_URL=http://localhost \
--name baserow \
-d \
--restart unless-stopped \
-v baserow_data:/baserow/data \
-p 80:80 \
-p 443:443 \
baserow/baserow:1.12.0

I am trying to access Baserow from a remote computer via a VPN, using a custom hostname simply called ‘crm’ (the custom hostname works, as the initial Baserow page loads fine).

However, maybe the issue is related to the custom host? When I try to open the API url http://crm:8080/api/user/, I get the following error (with debugging on):

# DisallowedHost at /api/user/
Invalid HTTP_HOST header: 'crm:8080'. You may need to add 'crm' to ALLOWED_HOSTS.

Not quite sure what to do… Thank you for any help again!