trust proxy?
This commit is contained in:
parent
9747276380
commit
dae2e3e0e4
1 changed files with 2 additions and 0 deletions
|
@ -140,6 +140,8 @@ app.use("/", async (req: Request, res: Response)=>{
|
|||
}
|
||||
});
|
||||
|
||||
app.set('trust proxy', (ip:string) => ip.startsWith("127."));
|
||||
|
||||
const PORT = process.env.PORT || Number(process.argv[2]) || 8080;
|
||||
app.listen(PORT, ()=>{
|
||||
console.log(`Server running on port ${PORT}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue