Config file

Describe the problem/error/question

I upgraded my N8N and when i go to login i get the following screen instead
To fix this, please consider the following options:

  • Setup TLS/HTTPS (recommended), or
  • If you are running this locally, try using localhost instead
  • If you prefer to disable this security feature (not recommended), set the environment variable N8N_SECURE_COOKIE to false

I’ve installed N8N with NPN on Ubuntu 20.x and edited a config file that is in:

/ubuntu/home/.n8n/config with the following details

{
“encryptionKey”: “N1Fv5fETi9n1/Axxxxxxxx”,
“N8N_SECURE_COOKIE”: false
}

I even tried to export the co
nfig using
export “N8N_SECURE_COOKIE”=false

When i restart the ubuntu server i still get the same error message…

Is there ANY documentation on how to configure the “CONFIG” file?

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • **Database (default: SQLite): SQLLite
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):default
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):npm
  • **Operating system:ubuntu 20

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Okay figured it out…put the variable in the n8n.service file in usr/lib/systemd/

[Unit]
Description=n8n
Documentation=https://n8n.io
After=network.target

[Service]
Environment=NODE_PORT=5678
Environment=N8N_SECURE_COOKIE=false
Type=simple
User=ubuntu
ExecStart=/usr/bin/n8n
Restart=on-failure

[Install]
WantedBy=multi-user.target

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.