Add option to enable webSocketMaskOverride in MeshCentral config

This commit is contained in:
Joel DeTeves 2021-12-31 19:31:18 -08:00
parent f455c15882
commit a2238fa435
1 changed files with 3 additions and 1 deletions

View File

@ -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}" ]
}
}
}