Hey everyone.
I am running metabase on elastic beanstalk and am trying to get NGINX_SERVER_NAME to work. However, whenever I add that as an environment variable with I can’t connect to metabase at all anymore (health check at /api/health still returns 200). The nginx log shows me the requests are being denied with the a 444 error which results in a 504 error in my browser.
Some more info:
- I’m also setting NGINX_FORCE_SSL to true
- I have tried setting the NGINX_SERVER_NAME to either mydomain.com or the elastic beanstalk domain.
- SSL certificate is set by the loadbalancer
- DNS (only) is managed by cloudflare
Any suggestions on how I can get this to work? I can see a lot of portscans happening on the instance IP so want to avoid that.
Thanks a lot!