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.
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
But it was never answered. What does environmental variables mean and where to edit them in case of a NPM install ? I don’t want to use docker at this point.
Hey @joeyk did you find solution? i’m currently in the same situation
i tried to do some chatgpt 4 solutions, he gave me this:
`Navigate to C:\Users\USERNAME.n8n.
Create a new text file there named env.txt.
Open the env.txt file and add the following environment variables:
N8N_HOST=YOUR_STATIC_IP
N8N_PORT=5678
N8N_PROTOCOL=http
VUE_APP_URL_BASE_API=http://YOUR_STATIC_IP:5678/
Replace YOUR_STATIC_IP with your actual static IP address. If you use HTTPS (SSL), replace http with https.
Save your changes.
Rename the file from env.txt to .env. In PowerShell, run this command in the same folder (C:\Users\USERNAME.n8n):
Rename-Item -Path “.\env.txt” -NewName “.env”
Restart n8n using the following command:
n8n start`
The problem in my .n8n there’s only .config file there’s no .env and i don’t want to run this solution it may effect my current production