diff --git a/config b/config index 4bcd59b..0f22ea6 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit 4bcd59b35e78780e43a22c641517697bfc345dc7 +Subproject commit 0f22ea6f385edd0edb705f4a8ee2a294739dbd76 diff --git a/internal/config/config.go b/internal/config/config.go index b7d63f7..e7e025f 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -108,6 +108,7 @@ type Forgejo struct { type ForgejoActions struct { Enabled bool `json:"enabled"` DefaultActionsURL string `json:"defaultActionsURL"` + LogRetentionDays int `json:"logRetentionDays"` } type ForgejoBackups struct { diff --git a/templates/forgejo/app.ini.gotmpl b/templates/forgejo/app.ini.gotmpl index 0323141..f3aa6d8 100644 --- a/templates/forgejo/app.ini.gotmpl +++ b/templates/forgejo/app.ini.gotmpl @@ -141,3 +141,5 @@ IS_INPUT_FILE = false [actions] ENABLED = {{ .Forgejo.Actions.Enabled }} DEFAULT_ACTIONS_URL = {{ default .Forgejo.Actions.DefaultActionsURL "https://code.forgejo.org" }} +LOG_RETENTION_DAYS = {{ .Forgejo.Actions.LogRetentionDays }} +LOG_COMPRESSION = zstd