Skip to content

Commit 81283aa

Browse files
committed
fix: enable trust proxy for Express app
1 parent 9c23851 commit 81283aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/src/app.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ class App {
114114
}
115115

116116
private setupExpress() {
117+
// Trust proxy when running behind load balancers/reverse proxies
118+
this.e.set('trust proxy', true);
119+
117120
this.e.use(cors());
118121
this.e.use((req, res, next) => {
119122
if (req.path === '/api/github/webhooks') {

0 commit comments

Comments
 (0)