Make api-session-timeout setable in Docker via env var API_SESSION_TIMEOUT
@@ -710,6 +710,13 @@ associate_json() {
ln -s /opt/guacamole/json/guacamole-auth-*.jar "$GUACAMOLE_EXT"
}
+##
+## Adds api-session-timeout to guacamole.properties
+##
+associate_apisessiontimeout() {
+ set_optional_property "api-session-timeout" "$API_SESSION_TIMEOUT"
+}
+
##
## Starts Guacamole under Tomcat, replacing the current process with the
## Tomcat process. As the current process will be replaced, this MUST be the
@@ -873,6 +880,11 @@ if [ -n "$JSON_SECRET_KEY" ]; then
associate_json
fi
+# Use api-session-timeout if specified.
+if [ -n "$API_SESSION_TIMEOUT" ]; then
+ associate_apisessiontimeout
+fi
+
# Set logback level if specified
if [ -n "$LOGBACK_LEVEL" ]; then
unzip -o -j /opt/guacamole/guacamole.war WEB-INF/classes/logback.xml -d $GUACAMOLE_HOME
