Skip to content

Commit

Permalink
Merge pull request #3422 from Encephala/logrotate-docs
Browse files Browse the repository at this point in the history
Add documentation on customising logrotate config
  • Loading branch information
jc21 committed Jan 8, 2024
2 parents c6aab8d + af475ab commit 7be5485
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/advanced-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,17 @@ value by specifying it as a Docker environment variable. The default if not spec
X_FRAME_OPTIONS: "sameorigin"
...
```

## Customising logrotate settings

By default, NPM rotates the access- and error logs weekly and keeps 4 and 10 log files respectively.
Depending on the usage, this can lead to large log files, especially access logs.
You can customise the logrotate configuration through a mount (if your custom config is `logrotate.custom`):

```yml
volumes:
...
- ./logrotate.custom:/etc/logrotate.d/nginx-proxy/manager
```

For reference, the default configuration can be found [here](https://github.com/NginxProxyManager/nginx-proxy-manager/blob/develop/docker/rootfs/etc/logrotate.d/nginx-proxy-manager).

0 comments on commit 7be5485

Please sign in to comment.