Could someone please give me a deubugging strategy for getting Nginx proxy manager working properly? My situation is this:
I had everything working fine with DuckDNS aand could access my instance from home and away. Then I decided I had better finally enable LetsEncrypt to use SSL which worked fine, except of course I could not access my HA instance locally without using a browser than would let me overcome the lack of a matching SSL certificate. So I then tried to setup the official Add On NGINX Home Assistant SSL proxy and changed configuration.yaml to have this in http:
http:
# base_url: https://MY-DOMAIN.duckdns.org
# ssl_certificate: /ssl/fullchain.pem
# ssl_key: /ssl/privkey.pem
use_x_forwarded_for: true # To ensure HA understands that client requests come via reverse proxy
trusted_proxies:
- 192.168.86.0/24 # In Home Assistant we need to add the Docker subnet
- 127.0.0.1 # Add the localhost IPv4 address
- ::1 # Add the localhost IPv6 address
Now I can only get at the HA instance internally on port 8123:
http://192.168.86.30:8123
I have port forwarded 80,81, and 443 to my HA machine above.
When that didn’t work I uninstalled the official Nginx add-on and tried the community add-on Nginx Proxy Manager, but the visible behaviour was the same, when connecting to https://MY-DOMAIN.duckdns.org the browser compained about note being able to make a secure connection. The logs in the Nginx Proxy Manager show my local http connections but no connection attempts from outside. The only error I can find is in the Core logfile which says this:
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 314, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
Can anyone give me a debugging strategy?