Update 'README.md'

This commit is contained in:
AJ ONeal 2018-04-20 06:27:36 +00:00
父節點 15a9765927
當前提交 cf220e5727
共有 1 個文件被更改,包括 12 次插入23 次删除

查看文件

@ -1,30 +1,17 @@
<!-- BANNER_TPL_BEGIN -->
About Daplie: We're taking back the Internet!
--------------
Down with Google, Apple, and Facebook!
We're re-decentralizing the web and making it read-write again - one home cloud system at a time.
Tired of serving the Empire? Come join the Rebel Alliance:
<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-koa (greenlock-koa) # greenlock-koa (greenlock-koa)
[![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) [![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 (lib)](https://git.coolaj86.com/coolaj86/greenlock.js)
| [greenlock-cli](https://git.daplie.com/Daplie/greenlock-cli) | [greenlock-cli](https://git.coolaj86.com/coolaj86/greenlock-cli.js)
| [greenlock-express](https://git.daplie.com/Daplie/greenlock-express) | [greenlock-express](https://git.coolaj86.com/coolaj86/greenlock-express.js)
| [greenlock-cluster](https://git.daplie.com/Daplie/greenlock-cluster) | [greenlock-cluster](https://git.coolaj86.com/coolaj86/greenlock-cluster.js)
| **greenlock-koa** | **greenlock-koa**
| [greenlock-hapi](https://git.daplie.com/Daplie/greenlock-hapi) | [greenlock-hapi](https://git.coolaj86.com/coolaj86/greenlock-hapi.js)
| |
| Sponsered by [ppl](https://ppl.family) |
Free SSL and Automatic HTTPS for node.js with KOA and other middleware systems via Let's Encrypt Free SSL and Automatic HTTPS for node.js with KOA and other middleware systems via Let's Encrypt
* Automatic Registration via SNI (`httpsOptions.SNICallback`) * Automatic Registration via SNI (`httpsOptions.SNICallback`)
@ -49,9 +36,11 @@ 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() + '/acme/etc'
, approveDomains: function (opts, certs, cb) { , approveDomains: function (opts, certs, cb) {
opts.domains = certs && certs.altnames || opts.domains; opts.domains = certs && certs.altnames || opts.domains;
@ -71,7 +60,7 @@ WARNING: If you don't do any checks and simply complete `approveRegistration` ca
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 ~/letsencrypt/etc \
--agree-tos --domains example.com --email user@example.com --agree-tos --domains example.com --email user@example.com