Automatic NODE_FUNCTION_ALLOW_EXTERNAL self hosted

Where can I set the NODE_FUNCTION_ALLOW_EXTERNAL=* so as it will always be set whenever I start the app locally?

I haven’t seen any examples on this.

How I have been doing it is, in my console, I type…
set NODE_FUNCTION_ALLOW_EXTERNAL=*
then I type…
n8n

The app starts up and my scripts run using the external libraries fine, but I don’t want to have to type it every time I start :face_with_raised_eyebrow:

Any ideas?

Thanks

Information on your n8n setup

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

Welcome to the community @Tony_Casey :sunny: :tada:

Are you using the npm version of n8n locally? To avoid having to manually set environment variables every time you start n8n, you can create a script or modify your system’s startup configuration which will depend on your OS. In windows, I think you can create a batch file that sets all the environment variables you want to set and then starts n8n. And instead of running n8n, you can run the batch file.

1 Like

Thanks @aya

I’m on Windows, so I figured out that I have to set the System Environment Variable as per screenshot…

1 Like

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