I have an nginx reverse proxy in front of other internal sites but it’s not working properly with Home Assistant. When I try to load the page I get a 400 error with the logs showing this.
2025-10-18 10:08:45.821 ERROR (MainThread) [homeassistant.components.http.forwarded] A request from a reverse proxy was received from 127.0.0.1, but your HTTP integration is not set-up for reverse proxies
Here are some of my configurations for both nginx and Home Assistant respectively. Any guidance would be appreciated.
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name homeassistant.acme.net;
location / {
proxy_pass http://127.0.0.1:8123;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_http_version 1.1;
}
}
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
http:
internal_url: http://192.168.15.15:8123
external_url: http://homeassistant.acme.net
use_x_forward_for: true
trusted_proxies:
- 127.0.0.1
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml