gohugo behind apache with letsencrypt

Introduction So I learn’t pretty quickly that running ssl cert termination on an AWS ELB was not that smart from a cost perspective. Pre req’s:- Ubuntu 16.04+ Running Apache2 Certbot installed using instructions at Certbot EFF The http apache virtualhost config Before you start you will need to have a config setup similar to this:- NameVirtualHost *:80 <VirtualHost *:80> ServerName myblog.com ServerAlias www.myblog.com ProxyPreserveHost On <Proxy *> AddDefaultCharset Off Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ ErrorLog ${APACHE_LOG_DIR}/myblog-error.

gohugo in production

Introduction Running gohugo in production can be a little confusing. Not because the documentation is bad, because it really is good for an open source project. However, there are some things you should do, before running your site on a public facing platform. Pre req’s:- Ubuntu 16.04+ shell access to your node ssl cert (you don’t have to, but you know you should) hugo is installed and you have created a hugo user in your distro of choice.