Add trustProxy option to server config

This commit is contained in:
Mészáros Mihály committed 2020-03-29 08:57:48 +02:00
1 parent 97fc02a543
commit a925393522
2 files changed
+10

No files matched your search

+6
View File
@@ -50,6 +50,12 @@ module.exports =
// listeningRedirectPort disabled
// use case: loadbalancer backend
httpOnly : false,
// WebServer/Express trust proxy config for httpOnly mode
// You can find more info:
// - https://expressjs.com/en/guide/behind-proxies.html
// - https://www.npmjs.com/package/proxy-addr
// use case: loadbalancer backend
trustProxy : '',
// If this is set to true, only signed-in users will be able
// to join a room directly. Non-signed-in users (guests) will
// always be put in the lobby regardless of room lock status.