-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnpn-server.config.js.sample
More file actions
32 lines (27 loc) · 983 Bytes
/
npn-server.config.js.sample
File metadata and controls
32 lines (27 loc) · 983 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
25
26
27
28
29
30
31
var config = {};
config.port = 8000;
config.key = '/etc/ssl/private/ssl-cert-snakeoil.key';
config.cert = '/etc/ssl/certs/ssl-cert-snakeoil.pem';
// Drop privileges after binding and reading certs
// if necessary
config.user = 'nobody'
config.group = 'nogroup'
// Use this protocol if client doesn't support npn
// Set this to null to drop the connection.
config.default = 'http';
var ssl_options = {
rejectUnauthorized: false
};
config.protocols = {
// Hidden protocols are not advertised during
// handshake.
ssh: {host: '127.0.0.1', port: 22, hidden: true},
http: {host: '127.0.0.1', port: 80, hidden: true},
// You might want to speak ssl with the backend but hide
// that from the client. Remember, the client already speaks
// ssl with the node proxy.
imap: {host: '127.0.0.1', port: 993, hidden: true, wrap_ssl: ssl_options},
// nc -l -p 3000
echo: {host: '127.0.0.1', port: 3000, hidden: false}
};
module.exports = config;