Hassio, proxmox and reverse proxy (caddy)

Hey there, just wanted to share my own experience with using “Caddy” to reverse proxy for the “Proxmox” WebUI. Please note that I’m using the Hassio Addon https://github.com/korylprince/hassio-caddy/tree/master/caddy and it works beautifully.

Below is my caddyfile configuration for proxmox, should it benefit anyone.

https://subdomain.duckdns.org:443 {
	proxy / https://192.168.xxx.xxx:8006 {
        websocket
        transparent
        insecure_skip_verify
    }
}

And if you’re interested in running Home Assistant as a VM inside Proxmox here’s a one commandline script to do it (very awesome): https://www.youtube.com/watch?v=JAHKftNVTco thx @Zpeed for the link/tip.

Home Assistant on Proxmox, rocks!!! If you’re having issues then reach out :slight_smile:

1 Like

hi, I have it all running (but Caddy on a separate VM), everything works, exept Google Assistant.

Anyone with my setup that can help me configure Caddy?

You just use the same URL as you use for HA. There is nothing special you need to do for Google Assistant with Caddy.

Let me explain better my situation

A) Curently I have, nothing in configuration.yaml (took out http: )
I use NGINX PROXY MANAGER addon on my HASSIO installation. Router forwards port 443 to NUC-proxmox-HassOS LAN IP.
Nginx proxy manager routes https://hassio.mydomain.com to the internal IP of HASSIO 192.168.1.12 with clouflare certificates
Nginx proxy manager addon routes also a lot of other things.

This works beautifullly, everything works, including Google Assistant

B) Now I wish to have a separate VM that handles all this (do not want HASSIO to route all my LAN, also because I am planning to put VLAN and other stuff, and I really do not think HASSIO should do other then Home Automation). So I did a simple VM with Ubuntu and CaddyV2 (try it is fantastic BTW, very very simple to use) with this

Of course I change router forward 443 and 80 to this new VM LAN IP.

Caddyfile is


hassio.{$MY_DOMAIN} {
    reverse_proxy 192.168.1.12:8123
}

plus of course similar code for all other servers

Everuthing works beautifully, very smooth and easy to program it all. Only thing not working is Google Assistant and HASSIO: when I ask “Ok Google turn off _____” the answer is always, “Google can’t reach the test app” (I never change the name of TEST).
Of course I can reach just fine from my LAN or from outside my network my HASSIO with usual https:// hassio.mydomain.com

Hope I am clear

p.s. maybe I have to add websocket, in Caddyfile?? (I never understood what is for this websocket)

SO if I can access HASSIO fine also Google Assistant shoukld work? Its not my case, I have really no idea

EDIT, problem solved, I forgot, that beside the change from Nginx to Caddy, I also changed from duckdns to mydomain. In Nginx both were working (both there), in Caddy no …

Glad you worked it out :+1:t2: