If you want a LEMP stack on cloud VM you can use any deploy service like Cloudways, SpinupWP, GridPane, Runcloud, ServerPilot, Ploi, etc. I’m pretty sure all of them are using Nginx and have some optimized config.
All fine options but some over priced for something you can do yourself, and none of them open source codebase.
Use Webinoly or SlickStack for LEMP stack code that is FOSS and WordPress optimized or if you want WordOps has fancier features.