Good afternoon! I need some help. How can I understand the reason why ERPNext consistently runs into a 502 error when accessing it via the address primer.com, while everything works fine when accessing it through the local address 192.180.100.100? Restarting the server and restarting bench do not help. ERPNext is not installed in Docker, and after about 4–5 minutes it starts working again, then the 502 error returns, and this keeps repeating in a cycle.
solved?
Use these settings at nginx.conf and also check the nginx error logs
proxy_connect_timeout 120s;
proxy_send_timeout 120s;
proxy_read_timeout 120s;
proxy_buffering off;
proxy_buffers 64 4k;
proxy_busy_buffers_size 128k;
proxy_http_version 1.1;
proxy_set_header Connection “”;