Two local addresses for Home Assist

I have a Home Assistant server with two connections lan and wi-fi. Accordingly, it can be accessed at http://192.168.1.30:8123 and http://192.168.1.31:8123. The 30th address is redirected through proxy server Caddy 2 and it corresponds to the entry

http:
  use_x_frame_options: false
  use_x_forwarded_for: true
  trusted_proxies: 
    - 192.168.1.30
    - 127.0.0.1
    - 172.30.33.0/24
    - ::1

31 address I would like to translate via Self-Trusted Certificate to https. How do I specify the key folder for the second address in the configuration.yaml
file ? Will Home Assistant understand that I have two addresses: one http and one https ?

I don’t thinks so.

You can add

http:
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

but there is no way to specify for which network card.

So my config file would look like this ?

http:
  use_x_frame_options: false
  use_x_forwarded_for: true
  trusted_proxies: 
    - 192.168.1.30
    - 127.0.0.1
    - 172.30.33.0/24
    - ::1 
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

Yes, but I don’t think you will get the effect you wanted.

Curious, what’s the use case for using both wifi and cabled networking?

Well, for example, for two addresses. One is for remote access and it is http, and the other is for Asterisk and it needs https. I don’t think homeassist has such a use case in it

Have you tried with one IP? If you have a reverse proxy it should work, at least it does here (nginx), HTTPS (home.mydomain.com) and HTTP (http://192.168.0.2:8123) if I want internally.

I have the same HTTPS through my domain and HTTP inside. But I need https inside as well

1 Like

Then give asterisk your https: address.

With the address https://mydomen.duckdns.org WSS did not work with Asterisk. Now Asterisk works on another server with self-signed certificate. I wanted to put everything on one server with two addresses