mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Merge pull request #3219 from FibreTTP/logrotate-perms
Make logrotate use the proper user and group.
This commit is contained in:
commit
0f3b76f607
@ -12,6 +12,10 @@ export CYAN BLUE YELLOW RED RESET
|
|||||||
PUID=${PUID:-0}
|
PUID=${PUID:-0}
|
||||||
PGID=${PGID:-0}
|
PGID=${PGID:-0}
|
||||||
|
|
||||||
|
# If changing the username and group name below,
|
||||||
|
# ensure all references to this user is also changed.
|
||||||
|
# See docker/rootfs/etc/logrotate.d/nginx-proxy-manager
|
||||||
|
# and docker/rootfs/etc/nginx/nginx.conf
|
||||||
NPMUSER=npm
|
NPMUSER=npm
|
||||||
NPMGROUP=npm
|
NPMGROUP=npm
|
||||||
NPMHOME=/tmp/npmuserhome
|
NPMHOME=/tmp/npmuserhome
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/data/logs/*_access.log /data/logs/*/access.log {
|
/data/logs/*_access.log /data/logs/*/access.log {
|
||||||
create 0644 root root
|
su npm npm
|
||||||
|
create 0644
|
||||||
weekly
|
weekly
|
||||||
rotate 4
|
rotate 4
|
||||||
missingok
|
missingok
|
||||||
@ -12,7 +13,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/data/logs/*_error.log /data/logs/*/error.log {
|
/data/logs/*_error.log /data/logs/*/error.log {
|
||||||
create 0644 root root
|
su npm npm
|
||||||
|
create 0644
|
||||||
weekly
|
weekly
|
||||||
rotate 10
|
rotate 10
|
||||||
missingok
|
missingok
|
||||||
|
Loading…
Reference in New Issue
Block a user