Getting the error - Don't use 'server_host' options with Hass.io

I recently added the trusted networks: to my auth_providers: config. When I rebooted it came back in safe mode with this error

Don't use 'server_host' options with Hass.io

This is my config. If I comment out the trusted_networks: section it works again.

  auth_providers:
    - type: homeassistant
    - type: legacy_api_password
      api_password: !secret http_password
    - type: trusted_networks
      trusted_networks:
        - 192.168.1.5/24

My gateway address is 192.168.1.5, I’m trying to set it so every computer on the LAN is trusted.

Any idea how to correct this?

What does your http section look like?

Here is my http: section

http:
  # Secrets are defined in the file secrets.yaml
  cors_allowed_origins:
    - https://192.168.1.111:7080
    - https://reformedreality.com
    - http://reformedreality.com
  base_url: https://redacted.duckdns.org
  #ssl_certificate: /ssl/fullchain.pem
  #ssl_key: /ssl/privkey.pem
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.

I have the same message and problem. I can’t find or see where I’ve used server_host.

I get the same problem. If you omit the /24 from the trusted network address it works without going into safe mode, but I don’t know if it will achieve what you’re after.

For myself, I’m simply trying to get rid of the “Login attempt or request with invalid authentication from …” notification which appears every 30 seconds or so - and which seems to be bugging a lot of people.

1 Like

Hi All

Have a look here https://hassio.local:8123/config/server_control (whatever yours is))

and see if the config is incorrect (Configuration validation)