Browse Source

test proxy #

master
Rich Brown 11 months ago
parent
commit
0678a12ea3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/index.js

+ 2
- 2
src/index.js View File

@@ -29,7 +29,7 @@ store.on('error', (error) => {
console.log('store error:', error);
});

app.set('trust proxy', 1); // trust first proxy
app.set('trust proxy', 3); // trust first proxy // TODO: test 3 instead of 1

const routesArray = ['/create', '/auth'];

@@ -37,7 +37,7 @@ app.use(routesArray, session({
secret: process.env.MONGO_PASSWORD, // dumb
store,
resave: false, // TODO: testing
saveUninitialized: false, // TODO: testing - will this keep my db cleaner?
saveUninitialized: false, // seems okay
cookie: { secure: false, maxAge: 1000 * 60 * 60 * 3, sameSite: false }, // TODO: reverting to false
}));



Loading…
Cancel
Save