You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'master' into feature/dismissing_reviews
* master:
[skip ci] Updated translations via Crowdin
Fix bug because of duplicated join (go-gitea#14454)
Cron job to cleanup hook_task table (go-gitea#13080)
Fix panic 500 page rendering (go-gitea#14474)
[skip ci] Updated translations via Crowdin
Move macaron to chi (go-gitea#14293)
[skip ci] Updated translations via Crowdin
Fix incorrect key name so registerManualConfirm setting works as expected. (go-gitea#14455)
Copy file name to clipboardexpand all lines: custom/conf/app.example.ini
+15
Original file line number
Diff line number
Diff line change
@@ -1023,6 +1023,21 @@ SCHEDULE = @every 24h
1023
1023
; deleted branches than OLDER_THAN ago are subject to deletion
1024
1024
OLDER_THAN = 24h
1025
1025
1026
+
; Cleanup hook_task table
1027
+
[cron.cleanup_hook_task_table]
1028
+
; Whether to enable the job
1029
+
ENABLED = true
1030
+
; Whether to always run at start up time (if ENABLED)
1031
+
RUN_AT_START = false
1032
+
; Time interval for job to run
1033
+
SCHEDULE = @every 24h
1034
+
; OlderThan or PerWebhook. How the records are removed, either by age (i.e. how long ago hook_task record was delivered) or by the number to keep per webhook (i.e. keep most recent x deliveries per webhook).
1035
+
CLEANUP_TYPE = OlderThan
1036
+
; If CLEANUP_TYPE is set to OlderThan, then any delivered hook_task records older than this expression will be deleted.
1037
+
OLDER_THAN = 168h
1038
+
; If CLEANUP_TYPE is set to PerWebhook, this is number of hook_task records to keep for a webhook (i.e. keep the most recent x deliveries).
-`PROVIDER_CONFIG`: **data/sessions**: For file, the root path; for others, the connection string.
554
554
-`COOKIE_SECURE`: **false**: Enable this to force using HTTPS for all session access.
555
555
-`COOKIE_NAME`: **i\_like\_gitea**: The name of the cookie used for the session ID.
@@ -609,16 +609,14 @@ Default templates for project boards:
609
609
-`MODE`: **console**: Logging mode. For multiple modes, use a comma to separate values. You can configure each mode in per mode log subsections `\[log.modename\]`. By default the file mode will log to `$ROOT_PATH/gitea.log`.
-`STACKTRACE_LEVEL`: **None**: Default log level at which to log create stack traces. \[Trace, Debug, Info, Warn, Error, Critical, Fatal, None\]
612
-
-`REDIRECT_MACARON_LOG`: **false**: Redirects the Macaron log to its own logger or the default logger.
613
-
-`MACARON`: **file**: Logging mode for the macaron logger, use a comma to separate values. Configure each mode in per mode log subsections `\[log.modename.macaron\]`. By default the file mode will log to `$ROOT_PATH/macaron.log`. (If you set this to `,` it will log to default gitea logger.)
614
612
-`ROUTER_LOG_LEVEL`: **Info**: The log level that the router should log at. (If you are setting the access log, its recommended to place this at Debug.)
615
613
-`ROUTER`: **console**: The mode or name of the log the router should log to. (If you set this to `,` it will log to default gitea logger.)
616
614
NB: You must `REDIRECT_MACARON_LOG` and have `DISABLE_ROUTER_LOG` set to `false` for this option to take effect. Configure each mode in per mode log subsections `\[log.modename.router\]`.
617
615
-`ENABLE_ACCESS_LOG`: **false**: Creates an access.log in NCSA common log format, or as per the following template
618
616
-`ACCESS`: **file**: Logging mode for the access logger, use a comma to separate values. Configure each mode in per mode log subsections `\[log.modename.access\]`. By default the file mode will log to `$ROOT_PATH/access.log`. (If you set this to `,` it will log to the default gitea logger.)
619
617
-`ACCESS_LOG_TEMPLATE`: **`{{.Ctx.RemoteAddr}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.URL.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}\" \"{{.Ctx.Req.UserAgent}}"`**: Sets the template used to create the access log.
620
618
- The following variables are available:
621
-
-`Ctx`: the `macaron.Context` of the request.
619
+
-`Ctx`: the `context.Context` of the request.
622
620
-`Identity`: the SignedUserName or `"-"` if not logged in.
623
621
-`Start`: the start time of the request.
624
622
-`ResponseWriter`: the responseWriter from the request.
@@ -696,6 +694,15 @@ NB: You must `REDIRECT_MACARON_LOG` and have `DISABLE_ROUTER_LOG` set to `false`
696
694
-`RUN_AT_START`: **true**: Run repository statistics check at start time.
697
695
-`SCHEDULE`: **@every 24h**: Cron syntax for scheduling repository statistics check.
-`RUN_AT_START`: **false**: Run cleanup hook_task at start time (if ENABLED).
701
+
-`SCHEDULE`: **@every 24h**: Cron syntax for cleaning hook_task table.
702
+
-`CLEANUP_TYPE`**OlderThan** OlderThan or PerWebhook Method to cleanup hook_task, either by age (i.e. how long ago hook_task record was delivered) or by the number to keep per webhook (i.e. keep most recent x deliveries per webhook).
703
+
-`OLDER_THAN`: **168h**: If CLEANUP_TYPE is set to OlderThan, then any delivered hook_task records older than this expression will be deleted.
704
+
-`NUMBER_TO_KEEP`: **10**: If CLEANUP_TYPE is set to PerWebhook, this is number of hook_task records to keep for a webhook (i.e. keep the most recent x deliveries).
705
+
699
706
#### Cron - Update Migration Poster ID (`cron.update_migration_poster_id`)
700
707
701
708
-`SCHEDULE`: **@every 24h** : Interval as a duration between each synchronization, it will always attempt synchronization when the instance starts.
0 commit comments