New forum content.json init changed to {}, process priority auto set to 10

This commit is contained in:
mrfry 2021-04-21 16:13:27 +02:00
parent 7571ffe271
commit 8d3c0d7592
3 changed files with 10 additions and 1 deletions

View file

@ -27,6 +27,10 @@ const isRoot = process.getuid && process.getuid() === 0
const port = isRoot ? 80 : 8080
const httpsport = isRoot ? 443 : 5001
import os from 'os'
os.setPriority(10)
console.log(`Process priority set to ${os.getPriority()}`)
import express from 'express'
import vhost from 'vhost'
import http from 'http'