diff --git a/README.md b/README.md index 89aa093..5256ce6 100644 --- a/README.md +++ b/README.md @@ -107,11 +107,11 @@ npm install --save greenlock-express@v4 You can use **local file storage** or a **database**. The default is to use file storage. ```bash +# Note: you can use the CLI to create `server.js` and `greenlock.d/config.json` npx greenlock init --config-dir ./greenlock.d --maintainer-email 'jon@example.com' ``` -
-server.js +`server.js`: ```js "use strict"; @@ -133,10 +133,7 @@ require("greenlock-express") .serve(app); ``` -
- -
-app.js +`app.js`: ```js "use strict"; @@ -153,11 +150,11 @@ module.exports = app;
```bash +# Note: you can use the CLI to edit the config file npx greenlock add --subject example.com --altnames example.com ``` -
-greenlock.d/config.json +`greenlock.d/config.json`: @@ -165,9 +162,8 @@ npx greenlock add --subject example.com --altnames example.com { "sites": [{ "subject": "example.com", "altnames": ["example.com"] }] } ``` -
- ```bash +# Note: you can use npm start to run server.js with the --staging flag set npm start -- --staging ``` @@ -181,7 +177,7 @@ Listening on 0.0.0.0:443 for secure traffic ## Walkthrough -Read the [WALKTHROUGH](https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/WALKTHROUGH.md) +Read the full [WALKTHROUGH](https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/WALKTHROUGH.md) # Examples