Editing Nginx Configs0:01
N. Engine X is the Web Server Forge uses to serve our applications, which means a lot of the work that it's doing behind the scenes is actually just managing N Engine X configuration files. If you wanna manage your N Engine X configurations manually, you can click on the three dots on the site and click edit n engine X configuration and make any changes you want here. And that's perfectly fine if that's all you wanna do.
Using Nginx Templates0:17
and make any changes you want here. And that's perfectly fine if that's all you wanna do. But if you find yourself commonly making changes across all of your sites or most of your sites, you might wanna reach for N Engine X templates, which allow you to say, every time I spin up a site, give me the choice to say, is it the default engine X config or a special one that I've saved? It's sort of like recipes versus commands. Commands are something you run once,
It's sort of like recipes versus commands. Commands are something you run once, but if you run this thing all the time, or often you might wanna make a recipe. Similarly, if you make a change to your sites all the time, or most of the time, consider nGenx templates. So we can figure our engine X templates at the server level because it'll be an option that we can pick every single time we spin up a new site on the server.
Creating a Template0:56
that we can pick every single time we spin up a new site on the server. So we go to our server and then PHP, and then engine X templates. And this is where we can create our first new template. When we click on add template, we give it a name so we can say, uh, with Health Check, and then we can make any modifications to the default configuration settings we want. So if we add a new location slash health,
to the default configuration settings we want. So if we add a new location slash health, and I think it's add header, content type text plane, and then we say Return 200, good to go. And then that's our template. And now that we have an Engine X template, we can create a new site on the server and go over to our advanced settings. And now we have a dropdown for Engine X template
Applying Template to Site1:46
and go over to our advanced settings. And now we have a dropdown for Engine X template and we can choose that Engine X template when we spin up the new site. And that route is gonna be accessible there. So let's just create that really quickly and now we can check out this domain and we can go to that slash health url. And there we go. Good to go.
And there we go. Good to go.
