We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d35054 commit 6846dc8Copy full SHA for 6846dc8
backend/src/app.ts
@@ -114,12 +114,9 @@ class App {
114
}
115
116
private setupExpress() {
117
- // Configure proxy trust based on environment variable
118
- // Common values: 'true', 'false', number (proxy hops), or comma-separated IPs
119
const trustProxy = process.env.TRUST_PROXY;
120
121
if (trustProxy !== undefined) {
122
- // Parse the environment variable
123
if (trustProxy === 'true') {
124
this.e.set('trust proxy', true);
125
} else if (trustProxy === 'false') {
0 commit comments