Syntax
parent
c424ffc17c
commit
b8305bbb08
|
|
@ -291,7 +291,6 @@ function setupOIDC(oidcIssuer)
|
||||||
);
|
);
|
||||||
|
|
||||||
passport.use('oidc', oidcStrategy);
|
passport.use('oidc', oidcStrategy);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function setupAuth()
|
async function setupAuth()
|
||||||
|
|
@ -426,18 +425,20 @@ async function runHttpsServer()
|
||||||
{
|
{
|
||||||
// http
|
// http
|
||||||
mainListener = http.createServer(app);
|
mainListener = http.createServer(app);
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
// https
|
// https
|
||||||
mainListener = spdy.createServer(tls, app);
|
mainListener = spdy.createServer(tls, app);
|
||||||
|
|
||||||
// http
|
// http
|
||||||
const redirectListener = http.createServer(app);
|
const redirectListener = http.createServer(app);
|
||||||
|
|
||||||
redirectListener.listen(config.listeningRedirectPort);
|
redirectListener.listen(config.listeningRedirectPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
// https or http
|
// https or http
|
||||||
mainListener.listen(config.listeningPort);
|
mainListener.listen(config.listeningPort);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function isPathAlreadyTaken(url)
|
function isPathAlreadyTaken(url)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue