Merge branch 'develop' of github.com:havfo/multiparty-meeting into develop

This commit is contained in:
Håvar Aambø Fosstveit
2020-03-31 01:29:34 +02:00
3 changed files with 70 additions and 60 deletions
+6
View File
@@ -101,6 +101,12 @@ module.exports =
});
}
}, */
// 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 : '',
// This function will be called on successful login through oidc.
// Use this function to map your oidc userinfo to the Peer object.
// The roomId is equal to the room name.
+4
View File
@@ -105,6 +105,10 @@ const session = expressSession({
}
});
if (config.trustProxy) {
app.set('trust proxy', config.trustProxy);
}
app.use(session);
passport.serializeUser((user, done) =>