notherbase-fs 4.2.6 → 4.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/notherbase-fs.js +2 -3
  2. package/package.json +1 -1
package/notherbase-fs.js CHANGED
@@ -41,7 +41,7 @@ class NotherBaseFS {
41
41
  }));
42
42
 
43
43
  //be safe, needs to be before session
44
- if (process.env.PRODUCTION == "true") this.app.set('trust proxy', 3);
44
+ if (process.env.PRODUCTION == "true") this.app.set('trust proxy', 2);
45
45
 
46
46
  let baseKeys = Object.keys(this.bases);
47
47
  let store = MongoStore.create({ mongoUrl: process.env.MONGODB_URI });
@@ -54,7 +54,6 @@ class NotherBaseFS {
54
54
  name: baseKeys[i] + '-session-id',
55
55
  resave: false,
56
56
  saveUninitialized: false,
57
- proxy: process.env.PRODUCTION == "true" ? true : undefined,
58
57
  cookie: {
59
58
  secure: process.env.PRODUCTION == "true",
60
59
  maxAge: 1000 * 60 * 60 * 24 * 28 // 28 days
@@ -81,7 +80,7 @@ class NotherBaseFS {
81
80
 
82
81
  //enable cookies
83
82
  this.app.use((req, res, next) => {
84
- console.log(req.ip, req.ips);
83
+ console.log(req.headers, req.ips);
85
84
 
86
85
  this.bases[req.hosting].session(req, res, next);
87
86
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "4.2.6",
3
+ "version": "4.2.8",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "exports": "./notherbase-fs.js",
6
6
  "scripts": {