# How to change nginx log rotation period

**URL:** <https://meta.discourse.org/t/how-to-change-nginx-log-rotation-period/43453>\
**Category:** Self-hosting\
**Created:** [29.Апрель.2016 13:48:57 UTC](https://meta.discourse.org/t/how-to-change-nginx-log-rotation-period/43453 "2016-04-29T13:48:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gearoid](https://avatars.discourse-cdn.com/v4/letter/g/9f8e36/32.png) [@gearoid](https://meta.discourse.org/u/gearoid)\
**Post date:** [29.Апрель.2016 13:48:57 UTC](https://meta.discourse.org/t/how-to-change-nginx-log-rotation-period/43453/1 "2016-04-29T13:48:57Z")

</div>

How can I change this and have it retained across upgrades ?

If I edit the `web.template.ym`l in `/var/discourse/templates` I get a problem pulling new versions.

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-nginx-log-rotation-period/43453)._
