• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Issue N8N in docker : ERR_ERL_UNEXPECTED_X_FORWARDED_FOR

soft009

New Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
18.0.73 #3
I have create n8n docker container and access through sub domain. After I login to the n8n workflow i am getting "connection Lost" error. when i check the docker container logs I found below error,
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 Page Redirection for more information.

I have update Additional nginx directives as well.

location / {
proxy_pass http://127.0.0.1:32779;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

Appreciate, if any one have idea how to resolve this issue.
Thank you.
 
Back
Top