16 lines
272 B
JavaScript
16 lines
272 B
JavaScript
|
...
|
||
|
|
||
|
https: {
|
||
|
key: require("fs").readFileSync('/privkey.pem'),
|
||
|
cert: require("fs").readFileSync('/cert.pem')
|
||
|
},
|
||
|
|
||
|
...
|
||
|
|
||
|
requireHttps: true,
|
||
|
|
||
|
...
|
||
|
|
||
|
webSocketNodeVerifyClient: function(info) {
|
||
|
return (info.origin == "https://www.example.de" && info.secure == true);
|
||
|
},
|