How to set environment variables in n8n?

I’m not familiar in Linux and n8n yet.

I want to set up webhook URL:

Where have I to type in this command?
Sorry for too simple question.

Hey @James-Frost, depend on your os. I know for macOS and Linux you run the following on your command line.

export WEBHOOK_TUNNEL_URL={yoururl}/

How the OS will understand that this variable is for n8n and not to other app?

As far as I know the env variable has to be set in the same terminal session n8n is going to run. So as long as you set it on the same terminal you are running n8n, it should be able to find it.

1 Like