Hi folks, I want to dockerized my simple theme, which requires configuration only, so I’m considering running Hugo server inside the container, and set up a proxy for it. I’m wondering there is any downside of this approach? Is there any recommend flags for Hugo server on production for reducing resources usage?
hugo server --watch fasle --minify -e production
It’s not a full blown web server, afaik. If you need functions like rewrite, authentication, fine-grained cache control, it’s probably not the best choice. And no automatic renewal of certificatrs…
Thanks for the details, I’m going to use Nginx to serve the static files generated by Hugo in the same container, I’d like to enable gzipping for sites. This approach increases the size of image, but it should be worthy.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.