Commit be9f91f9 authored by wu-lee's avatar wu-lee

serve.js - set 'trust proxy' to true

So we get the original IP/Hostnames for logging
parent 0cd99977
......@@ -49,6 +49,7 @@ async function build() {
buildlog.info('completed build.')
}
app.set('trust proxy', true); // Assume we're behind a proxy
app.use(express.static('/', expressOptions));
app.use(express.json());
app.use(express.urlencoded({extended: true}));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment