Newbie question: How to set N8N_SECURE_COOKIE

I’m new to N8N, docker and portainer. How can I set the environment variable to false, I tried to insert it into the .env file, but it doesn’t work. Also the file was empty a the path looks a litle weired:

/var/lib/docker/overlay2/db91f63efebf34c9f0ed3026b9e90a064d770546ce0d02025a5c44d563d90da6/diff/usr/local/lib/node_modules/n8n/node_modules/psl/.env

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:

Did you try to add the env variable on portainer?

Thank you for the answer. The env section in the container is read only and I don’t find the “Advanced container” settings.

Hey @Thomas_Benner,

In Portainer you need to browse to your container then click on Duplicate / Edit

This will then take you to another page and if you scroll down you should see something like this…

Personally I wouldn’t advise setting this option though and I would instead use a Cloudflare Tunnel or ngrok if you don’t want to run a reverse proxy.

1 Like

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