1
0

logrotate.go 293 B

12345678910111213
  1. package settings
  2. type Logrotate struct {
  3. Enabled bool `json:"enabled"`
  4. CMD string `json:"cmd" protected:"true"`
  5. Interval int `json:"interval"`
  6. }
  7. var LogrotateSettings = &Logrotate{
  8. Enabled: false,
  9. CMD: "logrotate /etc/logrotate.d/nginx",
  10. Interval: 1440, // 24 hours
  11. }