My question at the moment is: Is there a way to increase the time-out for nginx from say the 30 seconds to about two minutes? This would solve it probably.
- Nginx Timeout 20s Causes 502 Bad Gateway - Stack Overflow
- templates/web.letsencrypt.ssl.template.yml - accesses the nginx config
- Module ngx_http_proxy_module
My conclusion is that I can write a template that adds a .conf file to /etc/nginx/sites-enabled/
that sets the timeouts.
Also, I noticed that I observe this 502 with a higher likelihood when an answer was posted. My guess is that the forum needs to rebuild the page and that takes a while. Is this correct? I wonder: can I trigger a rebuild of a discourse page manually?