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

Forwarding True IP Address from Nginx Proxy Manager

Scheduled Pinned Locked Moved Solved Support
npmnginx
3 Posts 2 Posters 4.6k Views 3 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.
  • A Offline
    A Offline
    alwynispat
    wrote on last edited by girish
    #1

    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

    girishG 2 Replies Last reply
    0
    • A alwynispat

      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

      girishG Do not disturb
      girishG Do not disturb
      girish
      Staff
      wrote on last edited by
      #2

      @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
      0
      • A alwynispat

        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

        girishG Do not disturb
        girishG Do not disturb
        girish
        Staff
        wrote on last edited by girish
        #3

        @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
        1
        • girishG girish marked this topic as a question on
        • girishG girish has marked this topic as solved on
        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