Hello. I have installed NiFi Docker on a Google Cloud Debian 9 server.

The server has a public IP of PUBLIC_IP (placeholder for the real IP).

I ran docker pull apache/nifi and it installed the image successfully.

Then, I ran:
sudo docker run --name nifi -p 8080:8080 -d -e NIFI_HTTP_WEB_HOST=PUBLIC_IP
-e NIFI_HTTP_WEB_PORT=8080 apache/nifi:latest

Since I set NIFI_HTTP_WEB_HOST to my PUBLIC_IP, and I have allowed the port
8080 in the Google Cloud console, I would assume that http://PUBLIC_IP:8080/
nifi/ <http://public_ip:8080/nifi/> would work... instead, I get this:

"System Error
The request contained an invalid host header [PUBLIC_IP:8080] in the
request [/nifi/]. Check for request manipulation or third-party intercept."
When I run sudo docker logs nifi, I see the following warning:

o.a.nifi.web.server.HostHeaderHandler Request host header [PUBLIC_IP:8080]
different from web hostname [f3d104266d9a(:8080)]

Any clue on why that might be happening?

I found a few sites that suggested setting nifi.web.http.host in
nifi.properties, but I don't know how to do that in Docker. Plus, I thought
that the NIFI_HTTP_WEB_HOST setting served exacly for that purpose. Am I
missing something?

Thank you in advance.

Reply via email to