So i wanted a free way to access my Home Assistant Green from outside my home network. I ended up using tailscale, but only after i’d already set up duckdns for my GPS trackers. So my setup is a little weird, and probably unnecessary, but i didn’t want to break anything already existing (the duckdns access to traccar). As recommended in the setup for duckdns, i set up the nginx reverse proxy. So, when i went to configure the funnel for tailscale, it took a little finagling with Nginx to get it working. Basically, tailscale would not start until nginx allowed it through. So i had to turn off nginx, start tailscale, and then go into the tailscale docker container to run tailscale cert
and get ssl certs, put those in /ssl/ and then set up nginx to use custom servers for tailscale, which pointed to these certs in order to start it up. then everything worked! great! except… tailscale state that if you manually run tailscale cert
, you’re responsible for manually renewing these certs. But i know that if you let tailscale handle the certs on it’s own, then it will handle the renewal.
i managed to locate the auto-created certs in the tailscale docker container under /data/state/certs/, but here’s my question:
is there a way to copy/link/etc these certs inside the docker container to somewhere outside the container where nginx would be able to reference them? ideally it would be a solution that can be scripted or otherwise automated so that I don’t have to remember to do it manually.
the side question to this is - is there a better way to do this?
thanks, everyone, for creating this community! it’s exactly what i was looking for for years without knowing it.