# How can I update nginx.conf without resetting it on rebuild?

**URL:** https://meta.discourse.org/t/how-can-i-update-nginx-conf-without-resetting-it-on-rebuild/48102
**Category:** Self-hosting
**Created:** [2 באוגוסט,‏ 2016,‏ 6:01am UTC](https://meta.discourse.org/t/how-can-i-update-nginx-conf-without-resetting-it-on-rebuild/48102 "2016-08-02T06:01:28Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [2 באוגוסט,‏ 2016,‏ 6:05am UTC](https://meta.discourse.org/t/how-can-i-update-nginx-conf-without-resetting-it-on-rebuild/48102/2 "2016-08-02T06:05:59Z")

</div>

You have to use `replace` commands in your `app.yml` to make the edits to the config files as part of the build process. There’s [lots of examples in the `discourse_docker` repo](https://github.com/discourse/discourse_docker/search?utf8=%E2%9C%93&q=replace).

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-update-nginx-conf-without-resetting-it-on-rebuild/48102)._
