diff --git a/static/js/launch_progress.js b/static/js/launch_progress.js index 6beacdf..c2536a6 100644 --- a/static/js/launch_progress.js +++ b/static/js/launch_progress.js @@ -653,13 +653,13 @@ async function createProxyHost(domains, port, sslCertificateId) { forward_scheme: 'http', forward_host: '192.168.68.124', forward_port: parseInt(port), - ssl_forced: true, + ssl_forced: false, caching_enabled: true, block_exploits: true, allow_websocket_upgrade: true, - http2_support: true, - hsts_enabled: true, - hsts_subdomains: true, + http2_support: false, + hsts_enabled: false, + hsts_subdomains: false, certificate_id: sslCertificateId, meta: { letsencrypt_agree: true, @@ -1061,6 +1061,9 @@ async function downloadDockerCompose(repo, branch) { // Add new function to deploy stack async function deployStack(dockerComposeContent, stackName, port) { try { + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 10 * 60 * 1000); // 10 minutes timeout + const response = await fetch('/api/admin/deploy-stack', { method: 'POST', headers: { @@ -1080,9 +1083,12 @@ async function deployStack(dockerComposeContent, stackName, port) { value: 'false' } ] - }) + }), + signal: controller.signal }); + clearTimeout(timeoutId); // Clear the timeout if the request completes + if (!response.ok) { const error = await response.json(); throw new Error(error.error || 'Failed to deploy stack');