From 80c53c9869badd870a04814a86fe7a804ddf3382 Mon Sep 17 00:00:00 2001 From: Iz Date: Wed, 4 Oct 2023 02:06:26 +0000 Subject: [PATCH] adding websocket support from one click templates --- src/containers/apps/oneclick/OneClickAppDeploymentHelper.ts | 6 ++++++ src/models/IOneClickAppModels.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/src/containers/apps/oneclick/OneClickAppDeploymentHelper.ts b/src/containers/apps/oneclick/OneClickAppDeploymentHelper.ts index 69406ff9..ffd051fe 100644 --- a/src/containers/apps/oneclick/OneClickAppDeploymentHelper.ts +++ b/src/containers/apps/oneclick/OneClickAppDeploymentHelper.ts @@ -107,6 +107,12 @@ export default class OneClickAppDeploymentHelper { ) { appDef.notExposeAsWebApp = true } + if ( + !!dockerComposeService.caproverExtra + .websocketSupport + ) { + appDef.websocketSupport = true + } } return self.apiManager.updateConfigAndSave(appName, appDef) diff --git a/src/models/IOneClickAppModels.ts b/src/models/IOneClickAppModels.ts index 96f53b80..46a368c5 100644 --- a/src/models/IOneClickAppModels.ts +++ b/src/models/IOneClickAppModels.ts @@ -31,6 +31,7 @@ export interface IDockerComposeService { dockerfileLines?: string[] containerHttpPort: number notExposeAsWebApp: boolean // This is actually a string "true", make sure to double negate! + websocketSupport: boolean // This is actually a string "true", make sure to double negate! } }