Finishing up.
Daan Selen committed
Mar 24, 2025 at 08:53 UTC
3919c12d646a16b8749f8cf67dc9484d50531893
3 files changed
+10
-10
docker/Dockerfile
+3
-3
@@ -46,15 +46,15 @@ ENV CONFIG_FILE="/opt/meshcentral/meshcentral-data/config.json"
46
ENV DYNAMIC_CONFIG="true"
47
48
# environment variables for the above defined MeshCentral Config.json
49
-ENV ALLOWPLUGINS="false"
49
+ENV ALLOW_PLUGINS="false"
50
ENV ALLOW_NEW_ACCOUNTS="false"
51
ENV ALLOWED_ORIGIN="false"
52
ENV ARGS=""
53
ENV HOSTNAME="localhost"
54
ENV IFRAME="false"
55
-ENV LOCALSESSIONRECORDING="true"
55
+ENV LOCAL_SESSION_RECORDING="true"
56
ENV MINIFY="true"
57
-ENV REGENSESSIONKEY="false"
57
+ENV REGEN_SESSIONKEY="false"
58
ENV REVERSE_PROXY=""
59
ENV REVERSE_PROXY_TLS_PORT="443"
60
ENV WEBRTC="false"
docker/README.md
+6
-6
@@ -12,15 +12,15 @@ Below is a breakdown of environment variables used in this setup.
12
| NODE_ENV | production | Specifies the Node.js environment. |
13
| 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. |
15
-| ALLOWPLUGINS | false | Enables/disables plugins. |
15
+| ALLOW_PLUGINS | false | Enables/disables plugins. |
16
| ALLOW_NEW_ACCOUNTS | false | Enables/disables new account creation. |
17
| ALLOWED_ORIGIN | false | Enables/disables allowed origin policy. |
18
| ARGS | "" | Additional arguments for MeshCentral. |
19
| HOSTNAME | localhost | Specifies the hostname. |
20
| IFRAME | false | Enables/disables embedding in an iframe. |
21
-| LOCALSESSIONRECORDING | true | Enables session recording. |
21
+| LOCAL_SESSION_RECORDING | true | Enables session recording. |
22
| MINIFY | true | Minifies the JavaScript and HTML output. |
23
-| REGENSESSIONKEY | false | Regenerates the session key on each restart of the container. |
23
+| REGEN_SESSIONKEY | false | Regenerates the session key on each restart of the container. |
24
| REVERSE_PROXY | "" | Configures reverse proxy support through `certUrl`. |
25
| REVERSE_PROXY_TLS_PORT | "443" | Configures reverse proxy TLS port, will be combined with: `REVERSE_PROXY`. |
26
| WEBRTC | false | Enables/disables WebRTC support. |
@@ -104,15 +104,15 @@ CONFIG_FILE=/opt/meshcentral/meshcentral-data/config.json
104
DYNAMIC_CONFIG=true
105
106
# MeshCentral Configuration
107
-ALLOWPLUGINS=false
107
+ALLOW_PLUGINS=false
108
ALLOW_NEW_ACCOUNTS=false
109
ALLOWED_ORIGIN=false
110
ARGS=
111
HOSTNAME=localhost
112
IFRAME=false
113
-LOCALSESSIONRECORDING=true
113
+LOCAL_SESSION_RECORDING=true
114
MINIFY=true
115
-REGENSESSIONKEY=false
115
+REGEN_SESSIONKEY=false
116
REVERSE_PROXY=
117
REVERSE_PROXY_TLS_PORT=
118
WEBRTC=false
docker/entrypoint.sh
+1
-1
@@ -22,7 +22,7 @@ else
22
fi
23
24
if [[ "$DYNAMIC_CONFIG" =~ ^(true|yes)$ ]]; then
25
- cat $CONFIG_FILE
25
+ cat "$CONFIG_FILE"
26
echo "Using Dynamic Configuration values..."
27
28
# BEGIN DATABASE CONFIGURATION FIELDS