Skip to content

Commit 6846dc8

Browse files
committed
fix: simplify proxy trust configuration in setupExpress method
1 parent 6d35054 commit 6846dc8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

backend/src/app.ts

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

116116
private setupExpress() {
117-
// Configure proxy trust based on environment variable
118-
// Common values: 'true', 'false', number (proxy hops), or comma-separated IPs
119117
const trustProxy = process.env.TRUST_PROXY;
120118

121119
if (trustProxy !== undefined) {
122-
// Parse the environment variable
123120
if (trustProxy === 'true') {
124121
this.e.set('trust proxy', true);
125122
} else if (trustProxy === 'false') {

0 commit comments

Comments
 (0)