mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-16 20:22:46 +00:00
fix: trust proxy parameter
This commit is contained in:
@@ -40,7 +40,7 @@ export default async function start() {
|
||||
app.use(express.json());
|
||||
|
||||
app.use(compression());
|
||||
app.set("trust proxy", true);
|
||||
app.set("trust proxy", config.TRUST_PROXY);
|
||||
app.set("etag", "strong");
|
||||
|
||||
app.get("/ip", (request, response) => response.send(request.ip));
|
||||
|
||||
Reference in New Issue
Block a user