# NGINX Templates: Save, reuse, and centrally manage your configs

**URL:** https://community.runcloud.io/t/nginx-templates-save-reuse-and-centrally-manage-your-configs/4773
**Category:** Announcements
**Created:** [August 7, 2026, 4:44pm UTC](https://community.runcloud.io/t/nginx-templates-save-reuse-and-centrally-manage-your-configs/4773 "2026-08-07T16:44:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![runcloud](https://community.runcloud.io/user_avatar/community.runcloud.io/runcloud/32/1346_2.png) [@runcloud](https://community.runcloud.io/u/runcloud)
#### Post date: [August 7, 2026, 4:44pm UTC](https://community.runcloud.io/t/nginx-templates-save-reuse-and-centrally-manage-your-configs/4773/1 "2026-08-07T16:44:03Z")

</div>

NGINX Templates let you save, reuse, and centrally manage your server configurations across all your web applications.

 ![image](https://d11cdwldo1cksy.cloudfront.net/original/2X/a/adb900344752906558bf312c5e0610ec775646eb.png)

Save your optimized NGINX configs as reusable templates, install them on any web app with a single click, and push updates to all linked apps when your config changes.

**[Learn more about NGINX Templates →](https://runcloud.io/docs/category/nginx-templates)**

## **How It Works**

You can now save your NGINX configurations as reusable templates at the account level. Create a template from scratch or from any existing web app’s config. Templates support variables like {{webapp\_path}}, {{php\_version}}, and {{username}}, so the same template works across different apps and servers.

**Install on any web app:** Use templates during web app creation or attach them to existing apps. You can attach up to 5 templates per web app: one for security headers, one for caching rules, one for routing, etc.

**Update everywhere from one place:** When you need to push a change (say, a new Permissions-Policy header), edit the template once, select which linked web apps to sync, and RunCloud handles the rest. One NGINX reload per server, done.

**You’re in control:**

- Conflict detection warns you if a web app has local edits before you overwrite them
- Detach any web app from a template for independent customization
- Browse the public template library, duplicate community templates, and sync upstream updates manually

---

<div class="post-metadata">

### Author: ![Arvoisa](https://community.runcloud.io/letter_avatar_proxy/v4/letter/a/b77776/32.png) [@Arvoisa](https://community.runcloud.io/u/Arvoisa)
#### Post date: [August 25, 2026, 5:29pm UTC](https://community.runcloud.io/t/nginx-templates-save-reuse-and-centrally-manage-your-configs/4773/2 "2026-08-25T17:29:32Z")

</div>

How can we publish community templates?

---

<div class="post-metadata">

### Author: ![alex](https://community.runcloud.io/user_avatar/community.runcloud.io/alex/32/1253_2.png) [@alex](https://community.runcloud.io/u/alex)
#### Post date: [August 25, 2026, 5:30pm UTC](https://community.runcloud.io/t/nginx-templates-save-reuse-and-centrally-manage-your-configs/4773/3 "2026-08-25T17:30:55Z")

</div>

Hey @Arvoisa,

This is not currently supported: [Introduction to NGINX Templates | RunCloud Docs](https://runcloud.io/docs/introduction-to-nginx-templates#public-templates-community-templates)

NGINX public templates are predefined ones by us, and you have your own private library of reusable templates that you can create in your workspace.

What templates were you thinking of publishing?

We may look into a way to credit people but still include a manual step (for the obvious reason that they need to be verified manually).

---

<div class="post-metadata">

### Author: ![eduardo](https://community.runcloud.io/letter_avatar_proxy/v4/letter/e/6a8cbe/32.png) [@eduardo](https://community.runcloud.io/u/eduardo)
#### Post date: [August 26, 2026, 6:45pm UTC](https://community.runcloud.io/t/nginx-templates-save-reuse-and-centrally-manage-your-configs/4773/4 "2026-08-26T18:45:54Z")

</div>

Are there any plans to make NGINX configurations available through the REST API?

---

<div class="post-metadata">

### Author: ![Arvoisa](https://community.runcloud.io/letter_avatar_proxy/v4/letter/a/b77776/32.png) [@Arvoisa](https://community.runcloud.io/u/Arvoisa)
#### Post date: [August 26, 2026, 6:45pm UTC](https://community.runcloud.io/t/nginx-templates-save-reuse-and-centrally-manage-your-configs/4773/5 "2026-08-26T18:45:56Z")

</div>

Here is one.

This is what we use do deliver webp images in WordPress. There could be alternative version for avif and one that supports both:

```auto
set $webp_suffix "";
if ($http_accept ~* "image/webp") {
    set $webp_suffix ".webp";
}

set $webp_bypass "";
if ($arg_no_webp = "1") {
    set $webp_bypass "_off";
}

location ~* ^/.+\.(png|gif|jpe?g)$ {
    add_header Vary Accept;
    try_files $uri$webp_suffix$webp_bypass $uri =404;
}

```
