NGINX 400 Bad Request

Hi Community,

I’m facing a problem with my Home Assistant configuration and NGINX. I setup the NGINX config with:

  • I created my own
  • setup HTTPS port: 4545
  • setup HTTP port: empty
  • then I de-comment (with #) the http line in my configuration.yaml to let me access via http through my network.

When I try to connect both locally (with ip:4545) and remotely with ( my browser visualize:
"400 Bad Request
The plain HTTP request was sent to HTTPS port

Can someone help me to figure out this problem??

In my network I have a DrayTek Vigor where I configured a remote access port ABCD to redirect my request to the port 4545 of my Home Assistant IP.