diff --git a/.config/example.yml b/.config/example.yml index 489cceec34..1a6b0f5b4b 100644 --- a/.config/example.yml +++ b/.config/example.yml @@ -110,10 +110,10 @@ port: 3000 # Changes how the server interpret the origin IP of the request. # # Any format supported by Fastify is accepted. -# Default: trust all proxies (i.e. trustProxy: true) +# Default: do not trust any proxies (i.e. trustProxy: false) # See: https://fastify.dev/docs/latest/reference/server/#trustproxy # -# trustProxy: 1 +# trustProxy: false # ┌──────────────────────────┐ #───┘ PostgreSQL configuration └──────────────────────────────── diff --git a/packages/backend/src/server/ServerService.ts b/packages/backend/src/server/ServerService.ts index 1286b4dad6..4e05322b12 100644 --- a/packages/backend/src/server/ServerService.ts +++ b/packages/backend/src/server/ServerService.ts @@ -75,7 +75,7 @@ export class ServerService implements OnApplicationShutdown { @bindThis public async launch(): Promise { const fastify = Fastify({ - trustProxy: this.config.trustProxy ?? true, + trustProxy: this.config.trustProxy ?? false, logger: false, }); this.#fastify = fastify;