Solved Automatically add TRUSTED_PROXIES to config file
nj last edited by
I just installed osTicket. I was checking the "System Logs" section on the admin panel of osTicket, where it showed the IP address of the reverse proxy server instead of the original IP of the client's device.
Looking at the docs, I discovered a setting called
TRUSTED_PROXIESwhich was supported by osTicket. Setting the IP address of the reverse proxy there would fix the problem.
The config file is located at
/app/data/ost-config.phpand accessible from the app's file manager. Cloudron could set that variable when the app is configured for the first time.
#define('TRUSTED_PROXIES', ''); define('TRUSTED_PROXIES', '172.18.0.1');
Impact of the issue: Recording the reverse proxy's IP address could result in delayed or unsuccessful forensics in case of trouble.
@nj Thanks for reporting, I have fixed this in the latest package.