* Update Dockerfile Install 'logrotate' for nginx log. Issue https://github.com/laradock/laradock/issues/1357 * Create nginx Create 'logrotate' file for nginx log. Issue https://github.com/laradock/laradock/issues/1357 * Update Dockerfile Copy 'logrotate' config file. Issue https://github.com/laradock/laradock/issues/1357 * Update nginx Add 'nodateext' logrotate option to archive with sequence number * Update startup.sh Add line to start 'crond' demon * Update nginx Update permissions
		
			
				
	
	
		
			15 lines
		
	
	
		
			324 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			324 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/var/log/nginx/*.log {
 | 
						|
        daily
 | 
						|
        missingok
 | 
						|
        rotate 32
 | 
						|
        compress
 | 
						|
        delaycompress
 | 
						|
        nodateext
 | 
						|
        notifempty
 | 
						|
        create 644 www-data root
 | 
						|
        sharedscripts
 | 
						|
        postrotate
 | 
						|
                [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
 | 
						|
        endscript
 | 
						|
}
 |