How to increase the server response time with nginx?

Occurs 504 504 gateway time-out error when switching to "All products".
CMS Wordpress is a Woocommerce plugin.

Initially sinned on the database, restore the database backup did not help, this version threw.
As far as I understand just exceeds the time limit load the page.
But when you view the file /etc/nginx/nginx.conf
I found setting a time limit
Code /etc/nginx/nginx.conf

user apache;
worker_processes 1;

error_log /var/log/nginx/error.log warn;
pid /var/run/;

events {
 worker_connections 1024;

http {
 server_tokens off;
 client_body_buffer_size 128k;
 proxy_buffering on;
 proxy_buffer_size 64k;
 proxy_buffers 4 128k;
 proxy_busy_buffers_size 128k;
 proxy_max_temp_file_size 0;

 include /etc/nginx/mime.types;
 default_type application/octet-stream;

 "log_format" main '$remote_addr - $remote_user [$time_local] "$request" '
 '$status $body_bytes_sent "$http_referer" '
 '"$http_user_agent" "$http_x_forwarded_for"';

 access_log /var/log/nginx/access.log main;

 sendfile on;
 #tcp_nopush on;

 keepalive_timeout 65;

 #gzip on;

 include /etc/nginx/conf.d/*.conf;
 include /etc/nginx/vhosts/*/*.conf;
server {
 server_name localhost;
 "disable_symlinks" if_not_owner;
 listen 80;
 listen [::]:80;
 include /etc/nginx/vhosts-includes/*.conf;
 location @fallback {
 error_log /dev/null crit;
 "proxy_redirect" /;
 proxy_set_header Host $Host;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 proxy_set_header X-Forwarded-Proto $scheme;
 access_log off ;
 client_max_body_size 128m;

Tell me how to increase the timeout?
April 4th 20 at 00:45
1 answer
April 4th 20 at 00:47
There is usually either 30 or 60 seconds worth, that is a lot, I would advise you to dig in the direction of acceleration response from WordPress.

And response Google in 2 seconds
Thank you!) - Zoey_VonRueden commented on April 4th 20 at 00:50

Find more questions by tags Nginx