Skip to content

Commit

Permalink
express trust proxy (nginx) (rebase with gql)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Apr 11, 2024
1 parent 6b1fbb3 commit 7555314
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions backend/src/bootstrap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import http from "http";

export default async (config: Config) => {
const app = express();
app.set('trust proxy', 1);

await loaders(app);

Expand Down
1 change: 0 additions & 1 deletion backend/src/bootstrap/loaders/passport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const SCOPE = ['profile', 'email']

export default async (app: Application) => {
// init
app.use('trust proxy')
app.use(session({
secret: config.SESSION_SECRET,
name: 'sessionId',
Expand Down

0 comments on commit 7555314

Please sign in to comment.