Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-4937

Cannot GET /nifi-api/flow/bulletin-board behind reverse proxy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      NiFi on Docker + TinyProxy

      Description

      Hello,

      I have an problem, when running NiFi on Docker behind a reverse proxy (TinyProxy).

      TinyProxy configuration adds three headers. NiFi is working on the same host on port 8080.

      tinyproxy.conf
      ...
      AddHeader "X-ProxyHost" "public.domain.com"
      AddHeader "X-ProxyContextPath" "/path/to/nifi"
      AddHeader "X-ProxyPort" "443"
      ReversePath "/" "http://localhost:8080/"

      I can access NiFi through https://public.domain.com/path/to/nifi/nifi/ and NiFi works fine, but I'm getting sometimes a popup, which states, that is cannot GET /nifi-api/flow/bulletin-board. For ex. I happens, when I try to view configuration of a Controller Service.

      I recognized, that this request is made directly to NiFi and not through the reverse proxy. It looks, that it ignores the X-Proxy headers.

        Attachments

        1. nifi_bulletin_board_error.png
          124 kB
          Damian Czaja

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              trojan295 Damian Czaja
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: