I think that you are using n8n without a docker
In that case, this topic is really helpful
I use it on my own installation and works perfectly well