Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

'X-Forwarded-For' header #1514

@HyperCriSiS

Description

@HyperCriSiS

Description

Hi,

I saw this in the log when starting the docker container. (HA Addon).
What's the issue here?

Thanks
Hyper

ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (file:///usr/src/app/node_modules/express-rate-limit/dist/index.mjs:159:13)
    at wrappedValidations.<computed> [as xForwardedForHeader] (file:///usr/src/app/node_modules/express-rate-limit/dist/index.mjs:370:22)
    at Object.keyGenerator (file:///usr/src/app/node_modules/express-rate-limit/dist/index.mjs:643:20)
    at file:///usr/src/app/node_modules/express-rate-limit/dist/index.mjs:696:32
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async file:///usr/src/app/node_modules/express-rate-limit/dist/index.mjs:676:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}

TriliumNext Version

0.92.4

What operating system are you using?

Other Linux

What is your setup?

Local + server sync

Operating System Version

Trilium Notes as HA Addon

Error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions