Cloudflair error 525 or config http error

Hi
I had an old installation of HA that broke. A lot have change during the time including a move, so a fresh start was much needed. so I thought. I had SSL setup with duckdns at that time.

I’ve downloaded and installed a new HA with the add-on NGINX ssl-proxy. Downloaded the Cloudflair ssl key and certificate. I get the error 525 or 522 when accessing the HA from the out side. Port forward from 443 to ha.intranet:8123.
Config NGINX

domain: mydomain.gg
certfile: fullchain.pem
keyfile: privkey.pem
hsts: max-age=31536000; includeSubDomains
cloudflare: true
customize:
  active: false
  default: nginx_proxy_default*.conf
  servers: nginx_proxy/*.conf

Network

Container Host Description
443/tcp = 443
80/tcp = disable

I’ve found some post regarding this and they have http: in the config. When I add http: in the config file the HA will not start (frontend).

log from CORE

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing... 
[20:19:02] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2020-10-12 20:19:32 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2020-10-12 20:19:53 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=13 from 2020-10-12 18:02:08.745336)
Oct 12 20:20:03 WARN Wrong epoch, expected 1, got: 0
Oct 12 20:20:04 WARN Wrong epoch, expected 1, got: 0
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing... 
[20:29:21] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2020-10-12 20:29:50 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2020-10-12 20:30:11 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=14 from 2020-10-12 18:19:22.156784)
2020-10-12 20:57:06 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 275, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method

After 20:19:32 the http was removed and HA started (frontend).

Solved with
RTFM
and some testing.

Make sure to use same url every where.

No html: in configuration.yaml is used.