mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
readme update, env variable for disabling https
This commit is contained in:
parent
0488d3be35
commit
e307d08341
3 changed files with 15 additions and 9 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue