We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rss-impact-server/src/middlewares/session.middleware.ts
Line 24 in 75106b2
import session, { SessionOptions, Store } from 'express-session' import ms from 'ms' import ConnectSqlite3 from 'connect-sqlite3' import RedisStore from 'connect-redis' import { REDIS_URL, SESSION_SECRET, __DEV__ } from '@/app.config' import { DATABASE_PATH } from '@/db/database.module' import { getRedisClient } from '@/utils/redis' let store: Store if (REDIS_URL) { const client = getRedisClient() store = new RedisStore({ client, prefix: 'rss-impact:', }) } else { const SQLiteStore = ConnectSqlite3(session) store = new SQLiteStore({ dir: path.dirname(DATABASE_PATH), db: path.basename(DATABASE_PATH), }) as Store } // TODO 考虑增加 session 管理 const sessionOptions: SessionOptions = { secret: SESSION_SECRET, resave: false,
The text was updated successfully, but these errors were encountered:
No branches or pull requests
rss-impact-server/src/middlewares/session.middleware.ts
Line 24 in 75106b2
The text was updated successfully, but these errors were encountered: