mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added devel ports
This commit is contained in:
parent
2535ee92b0
commit
e3fecd61d0
2 changed files with 8 additions and 2 deletions
|
@ -140,6 +140,7 @@ function GetApp () {
|
||||||
const pw = uuidv4()
|
const pw = uuidv4()
|
||||||
const insertRes = dbtools.Insert(userDB, 'users', {
|
const insertRes = dbtools.Insert(userDB, 'users', {
|
||||||
pw: pw,
|
pw: pw,
|
||||||
|
avaiblePWRequests: 2,
|
||||||
created: utils.GetDateString()
|
created: utils.GetDateString()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,13 @@ console.clear()
|
||||||
|
|
||||||
const startHTTPS = true
|
const startHTTPS = true
|
||||||
const isRoot = process.getuid && process.getuid() === 0
|
const isRoot = process.getuid && process.getuid() === 0
|
||||||
const port = isRoot ? 80 : 8080
|
|
||||||
const httpsport = 5001
|
let port = isRoot ? 80 : 8080
|
||||||
|
let httpsport = isRoot ? 443 : 5001
|
||||||
|
if (process.env.NS_DEVEL) {
|
||||||
|
port = 24243
|
||||||
|
httpsport = 24244
|
||||||
|
}
|
||||||
|
|
||||||
const express = require('express')
|
const express = require('express')
|
||||||
const vhost = require('vhost')
|
const vhost = require('vhost')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue