There is an environment variable in the guacamole docker image that could set up the remote ip valve in tomcat, just add REMOTE_IP_VALVE_ENABLED: true and it will do the job.
For mod_proxy, I believe that’s an issue for apache, if you are using nginx you can ignore it.