server: Added trustedProxy config.
the build was successful

This commit is contained in:
2018-10-15 21:51:00 +02:00
parent 6dd1939c5e
commit 7e94b0047c
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@ const config = {
playgroundEndpoint: "http://127.0.0.1:17000/playground",
port: 8080,
root: "http://localhost:8080",
trustedProxy: null,
auth0: {
secret: "INVALID_SECRET",
clientId: "",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@gisle/rpdata-frontend",
"version": "1.0.4",
"version": "1.0.5",
"description": "RPData (www.aiterp.net) frontend/proxy",
"main": "./index.js",
"scripts": {
+5
View File
@@ -54,6 +54,11 @@ lasso.configure({
}
})
// Set trusted proxy
if (config.trustedProxy != null) {
app.set('trust proxy', config.trustedProxy)
}
// Apply middleware
app.use(markoExpress())
app.use(session)