@rpcbase/server 0.385.0 → 0.387.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.385.0",
3
+ "version": "0.387.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "scripts": {
package/src/initServer.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Application } from "express"
2
2
  import session, { SessionOptions } from "express-session"
3
3
  import {RedisStore} from "connect-redis"
4
- import {createClient} from "redis"
4
+ import {createClient} from "redis"
5
5
 
6
6
  import { getDerivedKey } from "./getDerivedKey"
7
7
 
@@ -24,7 +24,7 @@ export const initServer = async (app: Application, serverEnv: { [key: string]:
24
24
  }
25
25
 
26
26
  const redisClient = createClient({
27
- url: process.env.REDIS_URL,
27
+ url: serverEnv.REDIS_URL,
28
28
  socket: {
29
29
  reconnectStrategy,
30
30
  connectTimeout: 10000,
@@ -50,7 +50,7 @@ export const initServer = async (app: Application, serverEnv: { [key: string]:
50
50
  saveUninitialized: false,
51
51
  secret: sessionSecret,
52
52
  cookie: {
53
- maxAge: 1000 * 3600 * 24 * 90 // 90 days
53
+ maxAge: 1000 * 3600 * 24 * 60 // 60 days
54
54
  },
55
55
  }
56
56