Skip to content

Commit

Permalink
feat: 调整trust proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Oct 27, 2023
1 parent f1bd1ed commit 6d7eed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function bootstrap(): Promise<void> {

const eApp = app.getHttpAdapter() as unknown as Application

app.set('trust proxy', 'loopback')
app.set('trust proxy', true)

if (configService.get('NODE_ENV') === 'development') {
app.use(morgan('dev'))
Expand Down

0 comments on commit 6d7eed7

Please sign in to comment.