4 ms·
That's actually a pretty interesting idea. I wonder if we could make a lite version of Caddy bundled with your website embedded...no need to mess with file sys
by mholt 6y ago
That's actually a pretty interesting idea. I wonder if we could make a lite version of Caddy bundled with your website embedded...no need to mess with file systems or permissions or devices and folders to run a static site. Might need some massaging to become a truly pleasant workflow though.
- francislavoie 6y agoYeah - I could see it being part of xcaddy tooling to package up the static assets in the binary :)
- IceWreck 6y agoThe go std library offers the embed package. You can just embed your files and use the std lib's webserver and generate a single file binary. No need for Caddy. All this would be roughly 15 lines of code.
- mholt 6y agoPeople use Caddy for automatic HTTPS, which the std lib does not give you.
- anderspitman 6y agoObviously you don't need to know this but others might not be aware that certmagic is a great middle ground between Caddy and rolling your own ACME.