Skip to content

File tree

1 file changed

+106
-1
lines changed

1 file changed

+106
-1
lines changed

custom/conf/app.example.ini

Lines changed: 106 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,21 +889,40 @@ ENABLED = true
889889
; Run cron tasks when Gitea starts.
890890
RUN_AT_START = false
891891

892+
; Basic cron tasks
893+
892894
; Update mirrors
893895
[cron.update_mirrors]
894896
SCHEDULE = @every 10m
897+
; Enable running Update mirrors task periodically.
898+
ENABLED = true
899+
; Run Update mirrors task when Gitea starts.
900+
RUN_AT_START = false
901+
; Notice if not success
902+
NO_SUCCESS_NOTICE = true
895903

896904
; Repository health check
897905
[cron.repo_health_check]
898906
SCHEDULE = @every 24h
907+
; Enable running Repository health check task periodically.
908+
ENABLED = true
909+
; Run Repository health check task when Gitea starts.
910+
RUN_AT_START = false
911+
; Notice if not success
912+
NO_SUCCESS_NOTICE = true
899913
TIMEOUT = 60s
900914
; Arguments for command 'git fsck', e.g. "--unreachable --tags"
901915
; see more on http://git-scm.com/docs/git-fsck
902916
ARGS =
903917

904918
; Check repository statistics
905919
[cron.check_repo_stats]
920+
; Enable running check repository statistics task periodically.
921+
ENABLED = true
922+
; Run check repository statistics task when Gitea starts.
906923
RUN_AT_START = true
924+
; Notice if not success
925+
NO_SUCCESS_NOTICE = true
907926
SCHEDULE = @every 24h
908927

909928
; Clean up old repository archives
@@ -912,26 +931,112 @@ SCHEDULE = @every 24h
912931
ENABLED = true
913932
; Whether to always run at least once at start up time (if ENABLED)
914933
RUN_AT_START = true
934+
; Notice if not success
935+
NO_SUCCESS_NOTICE = true
915936
; Time interval for job to run
916937
SCHEDULE = @every 24h
917938
; Archives created more than OLDER_THAN ago are subject to deletion
918939
OLDER_THAN = 24h
919940

920941
; Synchronize external user data (only LDAP user synchronization is supported)
921942
[cron.sync_external_users]
943+
ENABLED = true
922944
; Synchronize external user data when starting server (default false)
923945
RUN_AT_START = false
946+
; Notice if not success
947+
NO_SUCCESS_NOTICE = true
924948
; Interval as a duration between each synchronization (default every 24h)
925949
SCHEDULE = @every 24h
926950
; Create new users, update existing user data and disable users that are not in external source anymore (default)
927951
; or only create new users if UPDATE_EXISTING is set to false
928952
UPDATE_EXISTING = true
929953

930-
; Update migrated repositories' issues and comments' posterid, it will always attempt synchronization when the instance starts.
954+
; Clean-up deleted branches
955+
[cron.deleted_branches_cleanup]
956+
ENABLED = true
957+
; Clean-up deleted branches when starting server (default true)
958+
RUN_AT_START = true
959+
; Notice if not success
960+
NO_SUCCESS_NOTICE = true
961+
; Interval as a duration between each synchronization (default every 24h)
962+
SCHEDULE = @every 24h
963+
; deleted branches than OLDER_THAN ago are subject to deletion
964+
OLDER_THAN = 24h
965+
931966
[cron.update_migration_poster_id]
967+
; Update migrated repositories' issues and comments' posterid, it will always attempt synchronization when the instance starts.
968+
ENABLED = true
969+
; Update migrated repositories' issues and comments' posterid when starting server (default true)
970+
RUN_AT_START = true
971+
; Notice if not success
972+
NO_SUCCESS_NOTICE = true
932973
; Interval as a duration between each synchronization. (default every 24h)
933974
SCHEDULE = @every 24h
934975

976+
; Extened cron task
977+
; they was not enabled as default
978+
979+
; Delete all unactivated accounts
980+
[cron.delete_inactive_accounts]
981+
ENABLED = false
982+
RUN_AT_START = false
983+
NO_SUCCESS_NOTICE = true
984+
SCHEDULE = @annually
985+
OLDER_THAN = 168h
986+
987+
; Delete all repository archives
988+
[cron.delete_repo_archives]
989+
ENABLED = false
990+
RUN_AT_START = false
991+
NO_SUCCESS_NOTICE = true
992+
SCHEDULE = @annually
993+
994+
; Garbage collect all repositories
995+
[cron.git_gc_repos]
996+
ENABLED = false
997+
RUN_AT_START = false
998+
NO_SUCCESS_NOTICE = true
999+
SCHEDULE = @every 72h
1000+
TIMEOUT = 60s
1001+
; Arguments for command 'git gc'
1002+
; The default value is same with [git] -> GC_ARGS
1003+
ARGS =
1004+
1005+
; Update the '.ssh/authorized_keys' file with Gitea SSH keys
1006+
[cron.resync_all_sshkeys]
1007+
ENABLED = false
1008+
RUN_AT_START = false
1009+
NO_SUCCESS_NOTICE = true
1010+
SCHEDULE = @every 72h
1011+
1012+
; Resynchronize pre-receive, update and post-receive hooks of all repositories.
1013+
[cron.resync_all_hooks]
1014+
ENABLED = false
1015+
RUN_AT_START = false
1016+
NO_SUCCESS_NOTICE = true
1017+
SCHEDULE = @every 72h
1018+
1019+
; Reinitialize all missing Git repositories for which records exist
1020+
[cron.reinit_missing_repos]
1021+
ENABLED = false
1022+
RUN_AT_START = false
1023+
NO_SUCCESS_NOTICE = true
1024+
SCHEDULE = @every 72h
1025+
1026+
; Delete all repositories missing their Git files
1027+
[cron.delete_missing_repos]
1028+
ENABLED = false
1029+
RUN_AT_START = false
1030+
NO_SUCCESS_NOTICE = true
1031+
SCHEDULE = @every 72h
1032+
1033+
; Delete generated repository avatars
1034+
[cron.delete_generated_repository_avatars]
1035+
ENABLED = false
1036+
RUN_AT_START = false
1037+
NO_SUCCESS_NOTICE = true
1038+
SCHEDULE = @every 72h
1039+
9351040
[git]
9361041
; The path of git executable. If empty, Gitea searches through the PATH environment.
9371042
PATH =

0 commit comments

Comments
 (0)