mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 12:16:28 +00:00
set trust proxy to 3
This commit is contained in:
@@ -153,7 +153,7 @@
|
||||
</g>
|
||||
</svg>
|
||||
<div class="flex justify-center text-sm font-bold mt-[-5px] logo-version">
|
||||
v0.17.0
|
||||
v0.17.1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -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