mirror of https://github.com/xwiki-labs/cryptpad
Merge branch 'main' into staging
This commit is contained in:
commit
b9e221b92b
|
@ -742,7 +742,8 @@ var server = Http.createServer(app);
|
|||
nThen(function (w) {
|
||||
server.listen(Env.httpPort, Env.httpAddress, w());
|
||||
if (Env.httpSafePort) {
|
||||
server.listen(Env.httpSafePort, Env.httpAddress, w());
|
||||
let safeServer = Http.createServer(app);
|
||||
safeServer.listen(Env.httpSafePort, Env.httpAddress, w());
|
||||
}
|
||||
server.on('upgrade', function (req, socket, head) {
|
||||
// TODO warn admins that websockets should only be proxied in this way in a dev environment
|
||||
|
|
Loading…
Reference in New Issue