mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Improve cron.archive_cleanup docs in cheat sheet and app.ini.sample (#3215)
Include defaults in cheat sheet, for that section
This commit is contained in:
		
				
					committed by
					
						
						Lauris BH
					
				
			
			
				
	
			
			
			
						parent
						
							6abfa48c0e
						
					
				
				
					commit
					9a0e2a8b07
				
			@@ -493,7 +493,11 @@ SCHEDULE = @every 24h
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
; Clean up old repository archives
 | 
					; Clean up old repository archives
 | 
				
			||||||
[cron.archive_cleanup]
 | 
					[cron.archive_cleanup]
 | 
				
			||||||
 | 
					; Whether to enable the job
 | 
				
			||||||
 | 
					ENABLED = true
 | 
				
			||||||
 | 
					; Whether to always run at least once at start up time (if ENABLED)
 | 
				
			||||||
RUN_AT_START = true
 | 
					RUN_AT_START = true
 | 
				
			||||||
 | 
					; Time interval for job to run
 | 
				
			||||||
SCHEDULE = @every 24h
 | 
					SCHEDULE = @every 24h
 | 
				
			||||||
; Archives created more than OLDER_THAN ago are subject to deletion
 | 
					; Archives created more than OLDER_THAN ago are subject to deletion
 | 
				
			||||||
OLDER_THAN = 24h
 | 
					OLDER_THAN = 24h
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -189,6 +189,13 @@ Note: Actually, Gitea supports only SMTP with STARTTLS.
 | 
				
			|||||||
- `ENABLED`: Enable this to run cron tasks periodically.
 | 
					- `ENABLED`: Enable this to run cron tasks periodically.
 | 
				
			||||||
- `RUN_AT_START`: Enable this to run cron tasks at start time.
 | 
					- `RUN_AT_START`: Enable this to run cron tasks at start time.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Cron - Cleanup old repository archives (`cron.archive_cleanup`)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- `ENABLED`: Enable service. Defaults to true.
 | 
				
			||||||
 | 
					- `RUN_AT_START`: Run tasks at start up time (if ENABLED). Defaults to true.
 | 
				
			||||||
 | 
					- `SCHEDULE`: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`. Defaults to `@every 24h`.
 | 
				
			||||||
 | 
					- `OLDER_THAN`: Archives created more than `OLDER_THAN` ago are subject to deletion, e.g. `12h`. Defaults to `24h`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Cron - Update Mirrors (`cron.update_mirrors`)
 | 
					### Cron - Update Mirrors (`cron.update_mirrors`)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- `SCHEDULE`: Cron syntax for scheduling update mirrors, e.g. `@every 1h`.
 | 
					- `SCHEDULE`: Cron syntax for scheduling update mirrors, e.g. `@every 1h`.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user