Redirect www to non-www in EC2-powered Ghost

This has been answered on the forum many many times, most notably with extra information here: