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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. osTicket
  3. Automatically add TRUSTED_PROXIES to config file

Automatically add TRUSTED_PROXIES to config file

Scheduled Pinned Locked Moved Solved osTicket
2 Posts 2 Posters 820 Views 1 Watching
  • 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.
    • njN Offline
      njN Offline
      nj
      wrote on last edited by
      #1

      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.

      Founder / Coder • My Apps

      girishG 1 Reply Last reply
      1
      • njN nj

        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.

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

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

        1 Reply Last reply
        2
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search