Skip to content

Instantly share code, notes, and snippets.

@reyvhernandez
Created September 22, 2021 02:14
Show Gist options
  • Save reyvhernandez/f9743c3938d6ad540be9810aa48cb0a7 to your computer and use it in GitHub Desktop.
Save reyvhernandez/f9743c3938d6ad540be9810aa48cb0a7 to your computer and use it in GitHub Desktop.
Valet NGINX error: 504 Gateway Time-out
Solving this issue is easy: just open the file /usr/local/etc/nginx/valet/valet.conf and add the following lines to the block location ~ \.php$ { }
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
fastcgi_read_timeout 300;
fastcgi_buffers 8 128k;
fastcgi_buffer_size 256k;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment