Nginx configuration

That is more of a personal preference, If I am setting up nginx to run as a reverse proxy I just create a file called proxy_hosts and unlink / remove the defaults and do everything that way but there isn’t really a right or wrong answer and it depends on what you feel comfortable doing.

i have n8n,pm2 ,certbot and nginx. The signed certificate is in the letsencrypt folder. Through pm2, I run n8n and everything works on ip-localhost: 5678, I can’t connect nginx to this construct …

You would set up your nginx proxy to connect to localhost 5678, The example config file @MutedJam has provided should do the job.

configured according to the instructions above, launched nginx and pm2 start n8n … nginx status in the screenshot, but I still can’t log in using

What happens when you try and login?