-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredbird.js
More file actions
24 lines (20 loc) · 734 Bytes
/
redbird.js
File metadata and controls
24 lines (20 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// https://github.com/OptimalBits/redbird
// https://whatsmychaincert.com/?mydomain.com
const { constants } = require('crypto');
var redbird = new require('redbird')({ port: 8080, ssl: { port: 443 }});
redbird.register('mydomain.com', 'http://127.0.0.1:9443', {
ssl: {
port: 9443,
key: 'ssl/mydomain/private.key',
cert: 'ssl/mydomain/mydomain.com.chained.crt',
secureOptions: constants.SSL_OP_NO_TLSv1 | constants.SSL_OP_NO_TLSv1_1,
}
});
redbird.register('www.mydomain.com', 'http://127.0.0.1:9443', {
ssl: {
port: 9443,
key: 'ssl/mydomain/private.key',
cert: 'ssl/mydomain/mydomain.com.chained.crt',
secureOptions: constants.SSL_OP_NO_TLSv1 | constants.SSL_OP_NO_TLSv1_1,
}
});