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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0
    • None
    • None
    • 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

            Unassigned Unassigned
            trojan295 Damian Czaja
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: