Skip to content

Instantly share code, notes, and snippets.

@mhsamiei
Last active August 2, 2020 06:58
Show Gist options
  • Save mhsamiei/9dd1eed7b5fccf99e6220f63db812e0f to your computer and use it in GitHub Desktop.
Save mhsamiei/9dd1eed7b5fccf99e6220f63db812e0f to your computer and use it in GitHub Desktop.
NGINX: upstream timed out

Nginx config for tune

Src -> https://www.thetopsites.net/article/53211578.shtml

server {

location / {
  proxy_connect_timeout 159s;
  proxy_send_timeout   600;
  proxy_read_timeout   600;
  proxy_buffer_size    64k;
  proxy_buffers     16 32k;
  proxy_busy_buffers_size 64k;
  proxy_temp_file_write_size 64k;
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment