Always when I deploy a new Laravel project using Inertia + vue I get a 502 error on the site. This is because Inertia tries to send a certain header that is too big for the default Nginx config that ploi provides. So I have to add this line: "fastcgi_buffer_size 32k;" in the site's config, in the location ~ \.php$ block.

Because I do not deploy a new Inertia site daily I'm always searching for the bug because I forgot. I could imagine that other people also could run into this issue. Could we maybe add this to the default Nginx config for a site?

Improve default Nginx config for Inertia

1 total vote
Quick Actions
Activity
View recent activity and updates
Use arrow keys to navigate