Error with Baserow in AWS with Auto Scaling and Load Balancer (EC2 instances)

Hello,

I have a problem with Baserow on AWS.
I have created an AMI (Image of an Instance configured with Baserow), an auto scaling group, and a load balancer. On the EC2 instance only docker has been installed and I have run this docker installer:

sudo docker run
-d
–name baserow_version_1_13_2
-e BASEROW_PUBLIC_URL=https://mydomain.com
-e DATABASE_HOST=dbhost
-e DATABASE_NAME=dbname
-e DATABASE_USER=dbuser
-e DATABASE_PASSWORD=dbpassword
-e DATABASE_PORT=5432
-v baserow_data:/baserow/data
-p 80:80
-p 443:443
–restart unless-stopped
baserow/baserow:1.13.2

In the load balancer listeners I have a port 80 and a port 443 entry connected with an SSL certificate to my domain (https://mydomain.com). What happens is that the load balancer gives you a URL, which your domain should point to. It gives me a 502 Bad Gateway error when I access from my url. I think it’s due to Baserow’s own naturalness… Has anyone had a similar error or managed to autoscale Baserow?
Thank you!

1 Like

Solved. I had to redirect port 443 in the load balancer also pointing to the HTTP service.

1 Like