mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-03 10:50:47 +00:00
set trust proxy to 3
This commit is contained in:
@@ -411,7 +411,6 @@ export class GameServer {
|
||||
}
|
||||
if (this.turns.length % 10 == 0 && this.turns.length != 0) {
|
||||
const lastHashTurn = this.turns.length - 10;
|
||||
console.log(`checking validity for turn ${lastHashTurn}`);
|
||||
|
||||
let { mostCommonHash, outOfSyncClients } =
|
||||
this.findOutOfSyncClients(lastHashTurn);
|
||||
|
||||
@@ -23,7 +23,7 @@ app.use(express.json());
|
||||
app.use(express.static(path.join(__dirname, "../../out")));
|
||||
app.use(express.json());
|
||||
|
||||
app.set("trust proxy", 2);
|
||||
app.set("trust proxy", 3);
|
||||
app.use(
|
||||
rateLimit({
|
||||
windowMs: 1000, // 1 second
|
||||
|
||||
@@ -56,7 +56,7 @@ export function startWorker() {
|
||||
next();
|
||||
});
|
||||
|
||||
app.set("trust proxy", 2);
|
||||
app.set("trust proxy", 3);
|
||||
app.use(express.json());
|
||||
app.use(express.static(path.join(__dirname, "../../out")));
|
||||
app.use(
|
||||
|
||||
Reference in New Issue
Block a user