A very basic greenlock-express server.
Download the repository.
git clone https://github.com/ryanburnette/greenlock-server-basic
cd greenlock-server-basic
Install dependencies.
npm install
Set up the environment.
# .env
NODE_ENV=production
EMAIL=ryan.burnette@gmail.com
DOMAINS=mysite.com,www.mysite.com
The target is assumed to be http://localhost:3000
, but can be set as
process.env.TARGET
.
Use go-serviceman to set up greenlock and the site service.