3 ms·
I used to do something similar, but DigitalOcean App Platform's $0/month "starter" plan[0] hosts a static site for even less effort. When I was self-hosting on
by coder543 4y ago
I used to do something similar, but DigitalOcean App Platform's $0/month "starter" plan[0] hosts a static site for even less effort.
When I was self-hosting on a DigitalOcean droplet, I was using Caddy instead of nginx, which handled letsencrypt for me, so that was nice.
[0]: https://www.digitalocean.com/pricing/app-platform https://www.digitalocean.com/pricing/app-platform
- justsomehnguy 4y agoI'm using Caddy with Docker labels auto-configuration. It's somewhat PITA to configure if you don't need a public cert, eg something for testing or not having a public A/AAAA record, but otherwise the automagik just works. The only negative moment is what Caddy container restarts when the dependent containers starts|restarts, so you briefly lose all connectivity to all sites behind Caddy. [0] https://github.com/lucaslorentz/caddy-docker-proxy https://github.com/lucaslorentz/caddy-docker-proxy
- jacooper 4y agoThere are also security implications that the webserver has access to the socket directly.
- justsomehnguy 4y ago> Each caddy docker proxy instance can be executed in one of the following modes. > Server > Acts as a proxy to your Docker resources. The server starts without any configuration, and will not serve anything until it is configured by a "controller". > Server instances doesn't need access to Docker host socket and you can run it in manager or worker nodes. This can be mitigated by running in the Controller mode