Update 'README.md'

This commit is contained in:
AJ ONeal 2018-04-20 06:30:13 +00:00
parent 6487df49f9
commit b65fd583d8
1 changed files with 12 additions and 25 deletions

View File

@ -1,27 +1,12 @@
<!-- BANNER_TPL_BEGIN --> # greenlock-hapi
About Daplie: We're taking back the Internet! (previously letsencrypt-hapi)
--------------
Down with Google, Apple, and Facebook! | [greenlock (lib)](https://git.coolaj86.com/coolaj86/greenlock.js)
| [greenlock-cli](https://git.coolaj86.com/coolaj86/greenlock-cli.js)
We're re-decentralizing the web and making it read-write again - one home cloud system at a time. | [greenlock-express](https://git.coolaj86.com/coolaj86/greenlock-express.js)
| [greenlock-cluster](https://git.coolaj86.com/coolaj86/greenlock-cluster.js)
Tired of serving the Empire? Come join the Rebel Alliance: | [greenlock-koa](https://git.coolaj86.com/coolaj86/greenlock-koa.js)
<a href="mailto:jobs@daplie.com">jobs@daplie.com</a> | [Invest in Daplie on Wefunder](https://daplie.com/invest/) | [Pre-order Cloud](https://daplie.com/preorder/), The World's First Home Server for Everyone
<!-- BANNER_TPL_END -->
# greenlock-hapi (letsencrypt-hapi)
[![Join the chat at https://gitter.im/Daplie/letsencrypt-express](https://badges.gitter.im/Daplie/letsencrypt-express.svg)](https://gitter.im/Daplie/letsencrypt-express?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
| [greenlock (lib)](https://git.daplie.com/Daplie/node-greenlock)
| [greenlock-cli](https://git.daplie.com/Daplie/greenlock-cli)
| [greenlock-express](https://git.daplie.com/Daplie/greenlock-express)
| [greenlock-cluster](https://git.daplie.com/Daplie/greenlock-cluster)
| [greenlock-koa](https://git.daplie.com/Daplie/greenlock-koa)
| **greenlock-hapi** | **greenlock-hapi**
| |
@ -49,7 +34,9 @@ npm install --save greenlock-express@2.x
'use strict'; 'use strict';
var le = require('greenlock-express').create({ var le = require('greenlock-express').create({
server: 'staging' // in production use https://acme-v01.api.letsencrypt.org/directory // You MUST change this to 'https://acme-v02.api.letsencrypt.org/directory' in production
server: 'https://acme-staging-v02.api.letsencrypt.org/directory'
, version: 'draft-11' // Let's Encrypt v2
, configDir: require('os').homedir() + '/letsencrypt/etc' , configDir: require('os').homedir() + '/letsencrypt/etc'
@ -74,8 +61,8 @@ Alternatively, You can run registration *manually*:
npm install -g greenlock-cli npm install -g greenlock-cli
greenlock certonly --standalone \ greenlock certonly --standalone \
--server 'https://acme-v01.api.letsencrypt.org/directory' \ --server 'https://acme-v02.api.letsencrypt.org/directory' \
--config-dir ~/letsencrypt/etc \ --config-dir ~/acme/etc \
--agree-tos --domains example.com --email user@example.com --agree-tos --domains example.com --email user@example.com
# Note: the '--webrootPath' option is also available if you don't want to shut down your webserver to get the cert. # Note: the '--webrootPath' option is also available if you don't want to shut down your webserver to get the cert.