Need help with my configuration

Hello,

I’m new here and trying to setup my remote connection to my Home Assistant.
I have a domain name, A record has been setup in Cloudflare to my public IP.

Portforwarding on my router has been setup.
I could reach at some point my home assistant by public IP.
But the connection isn’t secure and i don’t want that.

I’m trying to alter my configuration in my HA.


# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

http:
  server_port: 8443
  use_x_forwarded_for: true

  trusted_proxies:
  
- 172.67.219.0/24 
- 104.21.86.0/24
- 188.114.97.0/24

Also in error log:

    )
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Invalid config for 'http' at configuration.yaml, line 13: some but not all values in the same group of inclusion 'proxy' 'http-><proxy>', got None

Any help is greatly appreciated!

Thanks,
Substar

Watch your indentation.

http:
  server_port: 8443
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.67.219.0/24 
    - 104.21.86.0/24
    - 188.114.97.0/24
1 Like

Thanks man!

You solved my issue and i’m able to reach my HA through Domain/Cloudflare.

Much appreciated!

Still need to learn about “Indentation”.