added simple log rotator

This commit is contained in:
2026-03-17 16:53:09 +02:00
parent 52789ef4d1
commit 629f4a5fa6
2 changed files with 20 additions and 0 deletions
+2
View File
@@ -48,6 +48,7 @@ type Config struct {
Datadir string `json:"datadir" yaml:datadir`
Hostname string `json:"hostname" yaml:hostname`
Hostnames []string `json:"hostnames" yaml:hostnames`
LogLimit int64 `json:"logLimit" yaml:logLimit`
}
func NewConfig() *Config {
@@ -82,6 +83,7 @@ func NewConfig() *Config {
//Certpath: certpath,
//Keypath: keypath,
Hostnames: make([]string, 0),
LogLimit: 1024 * 1024 * 10, // 10 Mb
}
}