Trust proxy
This commit is contained in:
parent
1fea3196d0
commit
adfcc8995f
|
@ -9,6 +9,7 @@ import { Scanner } from './utils/scanner'
|
||||||
|
|
||||||
const port = process.env.PORT || 3000
|
const port = process.env.PORT || 3000
|
||||||
const app = express()
|
const app = express()
|
||||||
|
app.set('trust proxy', true)
|
||||||
|
|
||||||
let config = jsonfile.readFileSync(path.join(process.cwd(), 'config/config.json'))
|
let config = jsonfile.readFileSync(path.join(process.cwd(), 'config/config.json'))
|
||||||
if (config == null) {
|
if (config == null) {
|
||||||
|
|
Loading…
Reference in New Issue