nginx-ui/settings/logrotate.go
2024-10-22 16:38:38 +08:00

13 lines
293 B
Go

package settings
type Logrotate struct {
Enabled bool `json:"enabled"`
CMD string `json:"cmd" protected:"true"`
Interval int `json:"interval"`
}
var LogrotateSettings = &Logrotate{
Enabled: false,
CMD: "logrotate /etc/logrotate.d/nginx",
Interval: 1440, // 24 hours
}