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 Forwarding True IP Address from Nginx Proxy Manager

    Support
    npm nginx
    2
    3
    95
    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.
    • A
      alwynispat last edited by girish

      So I have tons of services running on my network and I'm using the Nginx Proxy Manager (NPM).

      It work's fine but I noticed the apps in Cloudron reporting the NPM IP Address instead of the true IP Address.

      In this case, it's the Mastodon app. d4b5325d-b0cf-4579-b14c-f6a62f2c190d-image.png
      I've tried adding this:
      776a5e3e-782e-4f15-8475-f349b98a9a62-image.png

      I've also tried adding the TRUSTED_PROXY_IP Address in the env.production file:
      d3c8a4a4-a274-4a59-a9d7-e5bc305f7525-image.png
      But this resulted in displaying the Cloudron internal IP Address instead.
      ff9d0cb7-5c81-4ce6-a51a-a30bb5b365b8-image.png

      Find me at Mastodon

      girish 2 Replies Last reply Reply Quote 0
      • girish
        girish Staff @alwynispat last edited by

        @alwynispat We don't have this feature yet. If you use the built-in app proxying (which I guess in some ways replaces NPM), then the IP is set correctly - https://docs.cloudron.io/apps/#app-proxy .

        For your situation, we need Cloudron to "trust" the X-Forwarded* headers which it currently doesn't.

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

          @alwynispat actually, https://forum.cloudron.io/topic/8321/forwarding-the-true-client-ip-address/ is the feature request . Let's continue there.

          1 Reply Last reply Reply Quote 1
          • Topic has been marked as a question  girish girish 
          • Topic has been marked as solved  girish girish 
          • First post
            Last post
          Powered by NodeBB