Trust proxy

This commit is contained in:
LordMathis 2019-11-03 15:51:26 +01:00
parent 1fea3196d0
commit adfcc8995f
No known key found for this signature in database
GPG Key ID: 575849FD91CE470C
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import { Scanner } from './utils/scanner'
const port = process.env.PORT || 3000
const app = express()
app.set('trust proxy', true)
let config = jsonfile.readFileSync(path.join(process.cwd(), 'config/config.json'))
if (config == null) {