From 2753ee21ab8bd2049e4cabac0738acb7342286fd Mon Sep 17 00:00:00 2001 From: Virtually Nick Date: Mon, 25 Aug 2025 12:29:24 -0400 Subject: [PATCH] GUACAMOLE-2119: Add setting to enable reading _FILE variables by default. --- .../entrypoint.d/100-generate-guacamole-home.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/guacamole-docker/entrypoint.d/100-generate-guacamole-home.sh b/guacamole-docker/entrypoint.d/100-generate-guacamole-home.sh index 0040274a9..f02cef3d6 100644 --- a/guacamole-docker/entrypoint.d/100-generate-guacamole-home.sh +++ b/guacamole-docker/entrypoint.d/100-generate-guacamole-home.sh @@ -113,3 +113,18 @@ enable-environment-properties: true EOF fi +# Enable reading of environment variables that pull values for properties +# from files, unless overridden +if ! is_property_set "enable-file-environment-properties"; then + cat >> "$GUACAMOLE_HOME/guacamole.properties" <<'EOF' +# +# NOTE: The following was automatically added by the container entrypoint to +# allow Guacamole configuration property values to be automatically read from +# files specified by environment variables ending in _FILE. If this is not +# desired, you can override this behavior by specifying the +# "enable-file-environment-properties" variable yourself in your +# own guacamole.properties file. +# +enable-file-environment-properties: true +EOF +fi