Skip to content

Commit 655bbda

Browse files
author
Harrison Ifeanyichukwu
committed
feat: implement http2 support
Implementation of Http2 support over secured connection with fallback support to https BREAKING CHANGE: The project now exports Server instead of App, and configuration file is now named .server.config.js file
1 parent 2967643 commit 655bbda

37 files changed

+6566
-4426
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/node_modules
22
/.cert
33
/logs
4-
/lib
4+
/build
55
/tmp
66
/coverage
77
/tests/helpers/unreadable.txt

.server.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const { createConfig } = require('./build/cjs');
2+
module.exports = createConfig({
3+
https: {
4+
enabled: true,
5+
enforce: true,
6+
credentials: {
7+
key: '.cert/server.key',
8+
cert: '.cert/server.crt',
9+
},
10+
},
11+
});

.server.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)