# Ngnix config is not retained after rebuild

**URL:** <https://meta.discourse.org/t/ngnix-config-is-not-retained-after-rebuild/34602>\
**Category:** Self-hosting\
**Created:** [Outubro 16, 2015, 12:56pm UTC](https://meta.discourse.org/t/ngnix-config-is-not-retained-after-rebuild/34602 "2015-10-16T12:56:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Martyn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martyn/32/115601_2.png) [@Martyn](https://meta.discourse.org/u/Martyn)\
**Post date:** [Outubro 16, 2015, 1:20pm UTC](https://meta.discourse.org/t/ngnix-config-is-not-retained-after-rebuild/34602/2 "2015-10-16T13:20:19Z")

</div>

You could make a template for your alterations and then include it in your app.yml. For example [this SSL template](https://github.com/discourse/discourse_docker/blob/master/templates/web.ssl.template.yml) rewrites some parts of the nginx config to support SSL.

---

_[View the full topic](https://meta.discourse.org/t/ngnix-config-is-not-retained-after-rebuild/34602)._
