502 Bad Gateway for only two Topics

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.

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?