Skip to content

Commit c449109

Browse files
author
Johannes Reppin
committed
add back mongoUrl
1 parent 85c8418 commit c449109

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,18 @@ async function bootstrap() {
107107
store: MongoStore.create({
108108
mongoUrl, // MongoDB connection string
109109
collectionName: 'sessions', // Collection name for storing sessions
110-
ttl: 14 * 24 * 60 * 60, // Session TTL (14 days)
110+
ttl: 24 * 60 * 60, // Session TTL (24 hours)
111111
}),
112112
cookie: {
113-
secure: true, // HTTPS-only in production
113+
secure: true,
114114
},
115115
}),
116116
);
117117
}
118118

119119
const port = configService.get<number>("port") ?? 3000;
120120
Logger.log(
121-
"MongoDB URI : " + ,
121+
"MongoDB URI : " + mongoUrl,
122122
"Main",
123123
);
124124
Logger.log("Scicat Backend listening on port: " + port, "Main");

0 commit comments

Comments
 (0)