Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eyantra's avatar

Nginx Configuration for L12 + Inertia on AWS t3.2xlarge - Need Guidance on Optimal Setup and Keep-Alive

Hi everyone,

I’ve deployed a Laravel 12 + Inertia.js application on an AWS t3.2xlarge instance with Nginx as the web server.

I’m looking for guidance on how to configure Nginx to make the best use of the available resources on this instance (8 vCPUs, 32 GB RAM). Specifically:

What are the recommended Nginx configurations (e.g., worker_processes, worker_connections, buffer sizes) for such a setup?

How can I tune it for high concurrency and responsiveness?

Also, I’m trying to enable keep-alive connections, but for some reason, it doesn’t seem to stay on. Is there a way to verify or force keep-alive to remain active? What settings should I check or update?

Any insights, sample configurations, or references would be highly appreciated!

Thanks in advance.

0 likes
0 replies

Please or to participate in this conversation.