Disable dynamic config feature by default.
Daan committed
Apr 13, 2025 at 11:59 UTC
b7512b9bedb8ee9a3739c3ed8eeea21c7f139f74
2 files changed
+7
-2
docker/Dockerfile
+1
-1
@@ -41,7 +41,7 @@ FROM alpine:3.21
41
# environment variables
42
ENV NODE_ENV="production" \
43
CONFIG_FILE="/opt/meshcentral/meshcentral-data/config.json" \
44
- DYNAMIC_CONFIG="true"
44
+ DYNAMIC_CONFIG="false"
45
46
# environment variables for the above defined MeshCentral Config.json
47
ENV ALLOW_PLUGINS="false" \
docker/README.md
+6
-1
@@ -1,5 +1,10 @@
1
# MeshCentral Docker Configuration Guide
2
3
+> [!NOTE]
4
+> Out of precaution, DYNAMIC_CONFIG has been disabled by default.<br>
5
+> The reason why is because when its enabled and a working config without corresponding environment variables gives,<br>
6
+> Then the container will overwrite it to a incorrect, but working state - perhaps non-working for your environment.
7
+
8
## Overview
9
This document provides a comprehensive guide to setting up and configuring MeshCentral in a Docker environment. It includes available options, security measures, and deployment instructions.
10
@@ -11,7 +16,7 @@ Below is a breakdown of environment variables used in this setup.
16
|----------|--------------|-------------|
17
| NODE_ENV | production | Specifies the Node.js environment. |
18
| CONFIG_FILE | /opt/meshcentral/meshcentral-data/config.json | Path to the configuration file. |
14
-| DYNAMIC_CONFIG | true | Enables/disables dynamic configuration. This means config is being rechecked every container restart. |
19
+| DYNAMIC_CONFIG | false | Enables/disables dynamic configuration. This means config is being rechecked every container restart. False if you want to use your own `config.json` |
20
| ALLOW_PLUGINS | false | Enables/disables plugins. |
21
| ALLOW_NEW_ACCOUNTS | false | Enables/disables new account creation. |
22
| ALLOWED_ORIGIN | false | Enables/disables allowed origin policy. |