鏡像自
https://github.com/therootcompany/greenlock-express.js.git
synced 2025-07-01 22:26:30 +00:00
address #26 - explicitly list http2 install
This commit is contained in:
父節點
ec4af4c616
當前提交
60c647d0da
@ -60,6 +60,10 @@ letsencrypt certonly --standalone \
|
||||
|
||||
### Standalone
|
||||
|
||||
```bash
|
||||
npm install --save http2
|
||||
```
|
||||
|
||||
```javascript
|
||||
lex.onRequest = function (req, res) {
|
||||
res.end('Hello, World!');
|
||||
@ -76,6 +80,10 @@ lex.listen([80], [443, 5001], function () {
|
||||
|
||||
## Express
|
||||
|
||||
```bash
|
||||
npm install --save http2
|
||||
```
|
||||
|
||||
```javascript
|
||||
// A happy little express app
|
||||
var app = require('express')();
|
||||
|
載入中…
x
新增問題並參考
Block a user