@cloudron/tegel 1.0.2 → 1.1.0

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/index.js +3 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -15,8 +15,11 @@ export async function createExpressApp({ sessionSecret = 'changeme', oidcConfig
15
15
 
16
16
  app.use(express.json());
17
17
 
18
+ const FileStore = require('session-file-store')(session);
19
+
18
20
  app.use(session({
19
21
  secret: sessionSecret,
22
+ store: new FileStore({ path: process.env.CLOUDRON ? '/app/data/.session.store' : '/tmp/session.store' }),
20
23
  resave: false,
21
24
  saveUninitialized: false,
22
25
  cookie: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudron/tegel",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "license": "GPL-2.0",
6
6
  "author": "Cloudron Developers",