The error happens because Nginx is still looking for an SSL certificate, but your ALB is handling the SSL. Here’s how to fix it:
-
Check your
app.yml: It looks like you’ve already disabled SSL templates, so you can skip this. -
Rebuild Discourse: Run
./launcher rebuild appto apply the changes. -
Check Nginx settings: Inside the container, look at the Nginx config and make sure there are no SSL lines (
ssl_certificate,ssl_certificate_key). If you find any, remove them and restart Nginx withsv restart nginx. -
Verify your ALB setup: Make sure your ALB is terminating SSL on port 443 and forwarding HTTP (port 80) to your EC2.
That should stop Nginx from looking for the SSL certificate, and everything should work fine over HTTP!