server-setup/Docker/node-red/data/settings.js

16 lines
272 B
JavaScript
Raw Permalink Normal View History

2022-06-30 08:20:53 +02:00
...
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);
},