mirror of
				https://github.com/caprover/caprover
				synced 2025-10-30 01:57:03 +00:00 
			
		
		
		
	Remove indefinite option
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Run build / build (push) Has been cancelled
				
			
		
			
				
	
				Run formatter / check-code-formatting (push) Has been cancelled
				
			
		
			
				
	
				Run lint / run-lint (push) Has been cancelled
				
			
		
			
				
	
				Build and push the edge image / run-pre-checks (push) Has been cancelled
				
			
		
			
				
	
				Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Run build / build (push) Has been cancelled
				
			Run formatter / check-code-formatting (push) Has been cancelled
				
			Run lint / run-lint (push) Has been cancelled
				
			Build and push the edge image / run-pre-checks (push) Has been cancelled
				
			Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
				
			This commit is contained in:
		| @@ -249,9 +249,10 @@ class DataStore { | ||||
|         const goAccessInfo = (self.data.get(GOACCESS_INFO) || | ||||
|             {}) as GoAccessInfo | ||||
|         goAccessInfo.isEnabled = goAccessInfo.isEnabled || false | ||||
|         if (!goAccessInfo.data) { | ||||
|         if (!goAccessInfo.data || !goAccessInfo.isEnabled) { | ||||
|             goAccessInfo.data = { | ||||
|                 rotationFrequencyCron: '0 0 1 * *', // monthly | ||||
|                 logRetentionDays: 180, | ||||
|             } | ||||
|         } | ||||
|         return Promise.resolve(goAccessInfo) | ||||
|   | ||||
| @@ -2,6 +2,6 @@ export class GoAccessInfo { | ||||
|     public isEnabled: boolean | ||||
|     public data: { | ||||
|         rotationFrequencyCron: string | ||||
|         logRetentionDays?: number | ||||
|         logRetentionDays: number | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -745,7 +745,7 @@ class CaptainManager { | ||||
|                             { | ||||
|                                 key: 'LOG_RETENTION_DAYS', | ||||
|                                 value: ( | ||||
|                                     goAccessInfo.data.logRetentionDays ?? -1 | ||||
|                                     goAccessInfo.data.logRetentionDays ?? 180 | ||||
|                                 ).toString(), | ||||
|                             }, | ||||
|                         ], | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kasra Bigdeli
					Kasra Bigdeli