From a2238fa4351791cc7e8d5783b098d740c84020f8 Mon Sep 17 00:00:00 2001 From: Joel DeTeves Date: Fri, 31 Dec 2021 19:31:18 -0800 Subject: [PATCH] Add option to enable webSocketMaskOverride in MeshCentral config --- docker/containers/tactical-meshcentral/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/containers/tactical-meshcentral/entrypoint.sh b/docker/containers/tactical-meshcentral/entrypoint.sh index 3e612fc1..795432cf 100644 --- a/docker/containers/tactical-meshcentral/entrypoint.sh +++ b/docker/containers/tactical-meshcentral/entrypoint.sh @@ -10,6 +10,7 @@ set -e : "${MONGODB_PORT:=27017}" : "${NGINX_HOST_IP:=172.20.0.20}" : "${MESH_PERSISTENT_CONFIG:=0}" +: "${WS_MASK_OVERRIDE:=0}" mkdir -p /home/node/app/meshcentral-data mkdir -p ${TACTICAL_DIR}/tmp @@ -50,7 +51,8 @@ mesh_config="$(cat << EOF "NewAccounts": false, "mstsc": true, "GeoLocation": true, - "CertUrl": "https://${NGINX_HOST_IP}:443" + "CertUrl": "https://${NGINX_HOST_IP}:443", + "agentConfig": [ "webSocketMaskOverride=${WS_MASK_OVERRIDE}" ] } } }