mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Removed devel ports
This commit is contained in:
parent
f3e6f21ad5
commit
d047f357af
1 changed files with 2 additions and 6 deletions
|
@ -22,12 +22,8 @@ process.stdout.write('\u001b[2J\u001b[0;0H') // console.clear()
|
||||||
const startHTTPS = true
|
const startHTTPS = true
|
||||||
const isRoot = process.getuid && process.getuid() === 0
|
const isRoot = process.getuid && process.getuid() === 0
|
||||||
|
|
||||||
let port = isRoot ? 80 : 8080
|
const port = isRoot ? 80 : 8080
|
||||||
let httpsport = isRoot ? 443 : 5001
|
const 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