Local Access problem. SSL, Caddy, etc

Hello guys

I’ve been fighting for a couple of hours now but can’t get it to work. My first setup was everything through port forwarding and of course that worked like a charm. But well, it is not the most secure way to do it as far as I know.

So I setup a wireguard VPN, got everything running. Everything works, I can access my lan network from outside (plex server, my computer vnc, etc…) but not the raspberry (where homeassistant is)

The thing is when I try to connect my homeasstant app or vaultwarden app it doesn’t work cause of certificates. As far as I learn i have my SSL certificates linked to my domain and im trying to connect vaultwarden, etc… to the LAN ip so it gives me that “not verified certificate”

I found out about caddy, I’ve set it up but it is not working.

Caddy config:

args: []
env_vars:
  - name: DUCKDNS_TOKEN
    value: <myduckdns token>
log_level: info
non_caddyfile_config:
  destination: localhost
  domain: xxxxx.duckdns.org
  email: [email protected]
  port: 8123

So as of now, I cannot access vaultwarden (hosted on the homeassistant) neither locally or outside (since it forces me to use https). And the only way to access my homeassistant is through a browser and not using https.

I have ports 443 to 443 and 80 to 80 forwarded to my raspberry IP where everything is installed.

1 Like