Config file location?

Hey,
Newbie here.
I installed n8n via NPM, configured nginx, all good, saves data, reachable from the web, love it.
But I can’t figure ot where the config file is, where I can set up authentication.
The install docs mention a .env file - but is that also for NMP install (no docker) ?
I added the .env in the .n8n folder. No luck.
I added the .env in the n8n folder. No luck.
I added the .env in the root folder. No luck.

How do I refer my n8n instance to a config? I’d like to set the basic auth.
Thx.

Welcome to the community.

Did you check?

Hello @RicardoE105, thank you for replying.
I did check, and there is no word about a config file.
I did find a config file in .n8n and by adding anything to that file in JSON format didn’t affect my instance.
In fact I can’t see anything in the Config description regarding where the file can be edited.

Probably just me, because there are no conversations about this in github/forum.
It seems, I’m overlooking something super obvious :slight_smile:

Same question here:

But it was never answered. What does environmental variables mean and where to edit them in case of a NPM install :slight_smile: ? I don’t want to use docker at this point.

Just set an env variable to in the process. Depending on your operating system, the way to do it might vary.

For Linux and macOS, you can do:

export THE_NAME=THE_VALUE

For example: To set the timezone, you can do export GENERIC_TIMEZONE=Europe/Berlin

The possible env variables that you can set are here.

You can check here what env variables are.

The Nginx part, sadly, I cannot help as I do not have experience with it.

Thank you for pointing me to the right direction! Now I know where to research.
I’ll post my solution here once I find it :slight_smile:

1 Like