Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Automatically add TRUSTED_PROXIES to config file

    osTicket
    2
    2
    175
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • nj
      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_PROXIES which 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.php and 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.

      girish 1 Reply Last reply Reply Quote 1
      • girish
        girish Staff @nj last edited by

        @nj Thanks for reporting, I have fixed this in the latest package.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        Powered by NodeBB