readme update, env variable for disabling https

This commit is contained in:
mrfry 2023-04-06 07:58:14 +02:00
parent 0488d3be35
commit e307d08341
3 changed files with 15 additions and 9 deletions

View file

@ -178,7 +178,7 @@ if (certsLoaded) {
logger.Log('Https not avaible', 'yellowbg')
}
if (!process.env.NS_DEVEL) {
if (!process.env.NS_NO_HTTPS_FORCE) {
app.use(function (req, res, next) {
if (req.secure) {
next()