trusts only one proxy hop (AWS WAF in huggingface's case)

This commit is contained in:
nai-degen 2024-01-07 19:17:37 -06:00
parent 7b0892ddae
commit d3ac3b362b
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ app.use(
// TODO: Detect (or support manual configuration of) whether the app is behind
// a load balancer/reverse proxy, which is necessary to determine request IP
// addresses correctly.
app.set("trust proxy", true);
app.set("trust proxy", 1);
app.set("view engine", "ejs");
app.set("views", [