mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[PR #1140] [MERGED] Adds logrotation #3379
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#3379
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/NginxProxyManager/nginx-proxy-manager/pull/1140
Author: @chaptergy
Created: 5/30/2021
Status: ✅ Merged
Merged: 7/11/2021
Merged by: @jc21
Base:
develop← Head:adds-logrotation📝 Commits (8)
d16bf7dAdds explicit names to dev containersdeca493Splits access and error logs for each host289d179Adds logrotatebd3a13bAlso rotate other logsfae848bStore host logs in subfoldersb7b150aRun logrotation binary from program56c317dAll logs in single folder673f40bRemoves force parameter from logrotate📊 Changes
12 files changed (+76 additions, -18 deletions)
View changed files
📝
backend/setup.js(+21 -1)📝
backend/templates/dead_host.conf(+2 -1)📝
backend/templates/default.conf(+2 -1)📝
backend/templates/letsencrypt-request.conf(+2 -1)📝
backend/templates/proxy_host.conf(+2 -2)📝
backend/templates/redirection_host.conf(+2 -1)📝
docker/Dockerfile(+4 -1)📝
docker/dev/Dockerfile(+2 -1)📝
docker/docker-compose.dev.yml(+10 -4)➕
docker/rootfs/etc/logrotate.d/nginx-proxy-manager(+25 -0)📝
docker/rootfs/etc/nginx/conf.d/default.conf(+2 -2)📝
docker/rootfs/etc/nginx/nginx.conf(+2 -3)📄 Description
This PR adds logrotation to the access and error logs of the hosts. both are rotated weekly. For access logs the last 4 files (=4 weeks) are kept, for error logs the last 10 files are kept.
Running performing the dry-run with
seems to work as expected, however we will have to wait to see if it actually does everything as expected.
Fixes https://github.com/jc21/nginx-proxy-manager/issues/183.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.