This is the default example configuration of rh-nginx118-nginx provided by nginx. This config file was generated by nginx running on RHEL 7.
It is located under: /etc/logrotate.d/rh-nginx118-nginx
/var/opt/rh/rh-nginx118/log/nginx/*log {
create 0644 nginx nginx
daily
rotate 10
missingok
notifempty
compress
sharedscripts
postrotate
/bin/kill -USR1 `cat /var/opt/rh/rh-nginx118/run/nginx/nginx.pid 2>/dev/null` 2>/dev/null || true
endscript
}
Download the raw file with wget or curl
wget -O rh-nginx118-nginx.example http://exampleconfig.com/static/raw/nginx/rhel7/etc/logrotate.d/rh-nginx118-nginx
curl http://exampleconfig.com/static/raw/nginx/rhel7/etc/logrotate.d/rh-nginx118-nginx > rh-nginx118-nginx.example
Other config files you might find useful