Skip to content

Commit c3e0589

Browse files
authored
Enable trust proxy to get correct ip address
Enable trust proxy to get correct ip address when running in a kubernetes cluster.
1 parent f342935 commit c3e0589

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const jwt = require('jsonwebtoken');
88
var concat = require('concat-stream');
99

1010
app.set('json spaces', 2);
11+
app.set('trust proxy', ['loopback', 'linklocal', 'uniquelocal']);
1112

1213
app.use(morgan('combined'));
1314

0 commit comments

Comments
 (0)