Skip to content

Commit 6a5cbdd

Browse files
committed
feat: set app to trust reverse proxy addresses
1 parent 5c6fa3f commit 6a5cbdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

microservices/user-service/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ mongoose.connect(config.db).then(() => {
1717
});
1818

1919
const app = express();
20+
app.set('trust proxy', 1);
2021

2122
app.use(express.json());
2223

0 commit comments

Comments
 (0)