Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Using custom proxy headers when proxying to NiFi UI

Highlighted

Using custom proxy headers when proxying to NiFi UI

New Contributor

I'm attempting to get a NiFi cluster working in Openshift, but I'm having issues with the proxying. It looks like NiFi expects the following headers set when using a proxy:

  • X-ProxyScheme - the scheme to use to connect to the proxy
  • X-ProxyHost - the host of the proxy
  • X-ProxyPort - the port the proxy is listening on
  • X-ProxyContextPath - the path configured to map to the NiFi instance

The issue is that Openshift doesn't give you the ability to set custom headers when going through a route. It only uses the following:

  • X-Forwarded-Port
  • X-Forwarded-Proto
  • X-Forwarded-Host

These match up with the relevant headers I'd need to set for NiFi, but there's no way for me to change them to match. Is there any way to change the expected headers for NiFi, or do I need to find another solution?