mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-05 20:57:40 +00:00
GUACAMOLE-1005: Docker, correct RemoteIPValve configuration file path
This commit is contained in:
@@ -742,7 +742,7 @@ enable_remote_ip_valve() {
|
||||
${GUACAMOLE_PROXY_BY_HEADER:+remoteIpProxiesHeader=\"$GUACAMOLE_PROXY_BY_HEADER\"} \
|
||||
${GUACAMOLE_PROXY_PROTOCOL_HEADER:+protocolHeader=\"$GUACAMOLE_PROXY_PROTOCOL_HEADER\"} \
|
||||
/>\n\1</Host>|" \
|
||||
/usr/local/tomcat/conf/server.xml
|
||||
$CATALINA_BASE/conf/server.xml
|
||||
}
|
||||
|
||||
##
|
||||
@@ -759,6 +759,11 @@ start_guacamole() {
|
||||
done
|
||||
cp -R /usr/local/tomcat/conf $CATALINA_BASE
|
||||
|
||||
# Set up Tomcat RemoteIPValve
|
||||
if [ "$REMOTE_IP_VALVE_ENABLED" = "true" ]; then
|
||||
enable_remote_ip_valve
|
||||
fi
|
||||
|
||||
# Install webapp
|
||||
ln -sf /opt/guacamole/guacamole.war $CATALINA_BASE/webapps/${WEBAPP_CONTEXT:-guacamole}.war
|
||||
|
||||
@@ -830,11 +835,6 @@ fi
|
||||
set_property "guacd-hostname" "$GUACD_HOSTNAME"
|
||||
set_property "guacd-port" "$GUACD_PORT"
|
||||
|
||||
# Set up Tomcat RemoteIPValve
|
||||
if [ "$REMOTE_IP_VALVE_ENABLED" = "true" ]; then
|
||||
enable_remote_ip_valve
|
||||
fi
|
||||
|
||||
#
|
||||
# Track which authentication backends are installed
|
||||
#
|
||||
|
Reference in New Issue
Block a user