electron-release-server
electron-release-server copied to clipboard
No `sails.config.sockets.onlyAllowOrigins` or `sails.config.sockets.beforeConnect` setting was detected. For security reasons, one of these options must be set when running Sails in a production environment.
Docker Prod
Modify config/docker.js
...
// Optional if behind a load balancer or proxy
http: {
trustProxy: true
},
// Replace "https://your.url.com" with your update server URL
sockets: {
onlyAllowOrigins: ["https://your.url.com"]
},
...
// Optional if https is used
session: {
cookie: {
secure: true
},
...
and also change migrate: 'alter'
to migrate: 'safe'