mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 12:04:03 +00:00
initial setup for google signin signup integration
This commit is contained in:
@@ -5,6 +5,7 @@ import infisical from 'infisical-node';
|
||||
import express from 'express';
|
||||
import helmet from 'helmet';
|
||||
import cors from 'cors';
|
||||
import session from 'express-session';
|
||||
import * as Sentry from '@sentry/node';
|
||||
import { DatabaseService } from './services';
|
||||
import { setUpHealthEndpoint } from './services/health';
|
||||
@@ -75,7 +76,7 @@ import {
|
||||
getPort,
|
||||
getSentryDSN,
|
||||
getSiteURL,
|
||||
getSmtpHost
|
||||
getSessionSecret,
|
||||
} from './config';
|
||||
|
||||
const main = async () => {
|
||||
@@ -111,6 +112,11 @@ const main = async () => {
|
||||
);
|
||||
|
||||
app.use(requestIp.mw());
|
||||
app.use(session({
|
||||
secret: getSessionSecret(),
|
||||
resave: false, // don't save session if unmodified
|
||||
saveUninitialized: false, // don't create session until something stored
|
||||
}));
|
||||
|
||||
if (getNodeEnv() === 'production') {
|
||||
// enable app-wide rate-limiting + helmet security
|
||||
|
||||
Reference in New Issue
Block a user