fix: Fix proxy every 10 secs
This commit is contained in:
		
							parent
							
								
									c340f6436f
								
							
						
					
					
						commit
						980dea64e0
					
				| @ -3,6 +3,7 @@ import { getApplicationById, prisma, supportedServiceTypesAndVersions } from '$l | |||||||
| import { dockerInstance } from '$lib/docker'; | import { dockerInstance } from '$lib/docker'; | ||||||
| import { | import { | ||||||
| 	checkContainer, | 	checkContainer, | ||||||
|  | 	checkProxyConfigurations, | ||||||
| 	configureCoolifyProxyOn, | 	configureCoolifyProxyOn, | ||||||
| 	configureProxyForApplication, | 	configureProxyForApplication, | ||||||
| 	configureSimpleServiceProxyOn, | 	configureSimpleServiceProxyOn, | ||||||
| @ -16,6 +17,11 @@ import * as db from '$lib/database'; | |||||||
| // import { generateRemoteEngine } from '$lib/components/common';
 | // import { generateRemoteEngine } from '$lib/components/common';
 | ||||||
| 
 | 
 | ||||||
| export default async function () { | export default async function () { | ||||||
|  | 	try { | ||||||
|  | 		await checkProxyConfigurations(); | ||||||
|  | 	} catch (error) { | ||||||
|  | 		console.log(error); | ||||||
|  | 	} | ||||||
| 	try { | 	try { | ||||||
| 		// Check destination containers and configure proxy if needed
 | 		// Check destination containers and configure proxy if needed
 | ||||||
| 		const destinationDockers = await prisma.destinationDocker.findMany({}); | 		const destinationDockers = await prisma.destinationDocker.findMany({}); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user