400: Bad Request after installing

I have searched the forum for similar issues

Yes

This category is for issues regarding specific apps, NOT general issues with YunoHost.

Yes

This form is written in English but feel free to write in French if you’re more comfortable!

Yes

What app is this about, and its version

Home Assistant, 2026.8.2~ynh1

What YunoHost version are you running

12.1.40.1

What type of hardware are you using

Virtual machine

Describe your issue

I just installed Home Assistant, but when I try to access the site in the app list, I get a page that just reads “400: Bad Request”. The log file has a line that reads “A request from a reverse proxy was received from 127.0.0.1, but your HTTP integration is not set-up for reverse proxies”, which seems relevant. The configuration.yaml file includes the following lines:
http:
server_port: 8213
use_x_forwarded_for: True
trusted_proxies:
- 127.0.0.1
- ::1

So, I’m not sure why I see that error in the log. Any suggestions as to what I should try next so I can start using Home Assistant?

Share relevant logs or error messages

I think you should uninstall-reinstall. When first login, there’s a pop up asking you to confirm the proxy settings.

You can also try adding this

      "use_x_forwarded_for": true,
      "trusted_proxies": [
        "127.0.0.1/32",
        "::1/128"
      ],

to /home/yunohost.app/homeassistant/.storage/http

e.g

  "version": 2,
  "minor_version": 2,
  "key": "http",
  "data": {
    "stable": {
      "use_x_forwarded_for": true,
      "trusted_proxies": [
        "127.0.0.1/32",
        "::1/128"
      ],
      "use_x_frame_options": true,

and sudo systemctl restart homeassistant

Uninstalling and reinstalling didn’t help unfortunately. Looking in /home/yunohost.app/homeassistant/.storage/http, I saw that the lines you suggested already exist under the "pending": { section. I commented them out and then added them under "stable": {, restarted homeassistant, and it seems to work now. Interestingly, I noticed the following error on the settings page:

I checked in /home/yunohost.app/homeassistant/.storage/ and it looks like a new http file was made without a "pending": { section and the suggested lines are still included in the "stable": { section. So, I just clicked submit. I guess everything is okay. Thank you!