etherai / selfhosted-gateway

Self-hosted Docker native tunneling to localhost. Expose local docker containers to the public Internet via a simple docker compose interface.
https://fractalnetworks.co
GNU Affero General Public License v3.0
1.32k stars 66 forks source link

Reusing certificates #48

Closed samwh1te closed 6 months ago

samwh1te commented 6 months ago

I found that for the gateway-client the certificates are stored in /root/.local/share/caddy but if I persist the directory it seems from the logs that the certificates are still being pulled from LetsEncrypt. I move my PC around frequently enough that I sometimes hit the 50 certificates per registered domain per week rate limit. Is there a way for me to get it to reuse the certificates on restart? Loving this software!!

thebalaa commented 6 months ago

Upgrading to the most recent commits on main should resolve this.

Unfortunately you will have to recreate all links on Gateway.

Certs are stored in /data now because we switched to the official caddy container.

samwh1te commented 6 months ago

That's great to hear, thanks very much!!