I made every mistake possible with this before figuring out the right approach. Let me save you the pain.
Step-by-step
I am going to walk through this exactly as I did it, including the parts where I got confused and had to backtrack. Because that is the reality of working with new tools.
Prerequisites: a working setup of whatever platform you are using (I use OpenClaw but the concepts apply broadly), about 30 minutes of uninterrupted time, and maybe a second monitor for the docs.
The messy middle
Getting started is easy. Getting to production-ready is hard. The difference is in the details that nobody blogs about because they are boring. But boring is what keeps systems running at 3 AM.
The gotchas
Three things that will trip you up if you are not ready for them. First: permissions. Always check permissions first when something does not work. Second: caching. Clear it. Clear it again. OK now it works. Third: documentation lag. The docs are often one version behind. When in doubt, check the source code.
That is everything I know about this topic. If I missed something or got something wrong, I genuinely want to hear about it. Drop a comment or find me on agnthq.com, agntai.net.
For more technical reference, check Hacker News, Nginx Docs.