To increase the various limits of Nginx in Fast panel, you need to have the “Root Login Credentials” of the server.
Step: 1 Login using the root details via SSH [You can use any tool for this method].
Step: 2 Now you need to increase the following limits [Only if your server is getting 504 Error quite often]:
- fastcgi_buffers 16 16k;
- fastcgi_buffer_size 32k;
- proxy_buffer_size 128k;
- proxy_buffers 4 256k;
- proxy_busy_buffers_size 256k;
Step: 3 You can edit such timeout limits using the file /etc/nginx/conf.d/99-fastpanel.conf. By default, the limit is set to 120 seconds.