Hello, Hello
I also had this problem and was looking for a solution without success. I was able to solve the problem.
Back up HAss
Uninstall Node-Red
I renamed the folder in the config / node-red directory at: config / node-red-old
I installed and configured Node-Red
Bad Gateway 502 … disappeared …
Click on the conf tab of the Node-red add-on and basically paste this in. This is my configuration and it just works.
credential_secret: redacted but something difficult to guess dark_mode: false http_node: username: redacted but same as HA login password: redacted but same as HA password http_static: username: redacted but same as HA login password: redacted but same as HA password ssl: false certfile: fullchain.pem keyfile: privkey.pem require_ssl: false system_packages: [] npm_packages: [] init_commands: []
Now obviously, if you want dark mode or SSL etc., you’ll need to update this as required, but for now let’s try and get straight into node-red. Also some of this may or may not be necessary, but as I mentioned before, this just works for me. If you want to go through the full configuration options, you can check here: https://github.com/hassio-addons/addon-node-red/blob/master/node-red/DOCS.md
In order to preserve the correct lay out, here’s an example of it on the page: