Merge branch 'main' into staging

This commit is contained in:
yflory 2024-05-17 11:04:03 +02:00
commit b9e221b92b
1 changed files with 2 additions and 1 deletions

View File

@ -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