Skip to content

Commit

Permalink
Fixed proxy trust to work inside the swarm
Browse files Browse the repository at this point in the history
  • Loading branch information
f213 committed Apr 12, 2022
1 parent fa4bc0b commit 58ed40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { createProxyMiddleware } = require("http-proxy-middleware");

const app = express();

app.set("trust proxy", "loopback");
app.set("trust proxy", true);
app.use(morgan("combined"));

app.use("/healthcheck/", (_, res) => res.send("OK"));
Expand Down

0 comments on commit 58ed40c

Please sign in to comment.