You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Matthias Biehler <Ma...@dahag.de> on 2025/01/31 07:25:24 UTC

Docker http

Hello,

I want to run nifi on Docker behind a reverse proxy. Other applications run on http on localhost while the reverse proxy terminates TLS.
There are some env variables that can be used to configure Host and Port, but it seems they only exist for https: https://github.com/apache/nifi/blob/main/nifi-docker/dockerhub/sh/start.sh#L41-L42
When I manually edit the config file and add http.port, the container fails on restart: Failed to start Server java.lang.IllegalStateException: Invalid port configuration in nifi.properties: Both nifi.web.https.port and nifi.web.http.port specified

Is it possible to run the container with HTTP only? If so, how can I configure it correctly?
Thanks!



--
DAHAG Rechtsservices AG
Matthias Biehler
 IT DevOps
Telefon: 0911/810 481-3323
E-Mail: Matthias.Biehler@dahag.de
DAHAG Rechtsservices AG

Am Plärrer 7 | 90443 Nürnberg
Telefon: 0911/810 481-0 | Telefax: 0911/810 025-25
www.dahag.de
Vorstand: Johannes Goth, Christian Ulshöfer, Jonas Zimmermann
Aufsichtsrat: Arne Hostrup (Vorsitzender)
HRB 24658 Nürnberg | USt-ID.: DE261181671

Antwort: Docker http

Posted by j....@avm.de.
Hi,

you need to configure http OR https. Both configs together don't work. Without
https you can't configure different auth mechanisms. See the Nifi Admin Guide:
<https://nifi.apache.org/nifi-docs/administration-
guide.html#security_configuration>

Good luck!



> \----- Ursprüngliche Nachricht -----  
> Von: "Matthias Biehler" <Ma...@dahag.de>  
> An: "'users@nifi.apache.org'" <us...@nifi.apache.org>  
> CC:  
> Betreff: Docker http  
> Datum: Fr, 31. Jan 2025 08:25  
>  
>
>
> Hello,
>
>  
>
> I want to run nifi on Docker behind a reverse proxy. Other applications run
> on http on localhost while the reverse proxy terminates TLS.
>
> There are some env variables that can be used to configure Host and Port,
> but it seems they only exist for https: [
> https://github.com/apache/nifi/blob/main/nifi-
> docker/dockerhub/sh/start.sh#L41-L42](https://github.com/apache/nifi/blob/main/nifi-
> docker/dockerhub/sh/start.sh#L41-L42)
>
> When I manually edit the config file and add http.port, the container fails
> on restart: Failed to start Server java.lang.IllegalStateException: Invalid
> port configuration in nifi.properties: Both nifi.web.https.port and
> nifi.web.http.port specified
>
>  
>
> Is it possible to run the container with HTTP only? If so, how can I
> configure it correctly?
>
> Thanks!
>
>  
>
>  
>
> * * *
>
> ![](cid:__Image_00000161)
>
>  **Matthias Biehler  
>  ****IT DevOps******
>
> Telefon: 0911/810 481-3323  
> E-Mail: Matthias.Biehler@dahag.de
>
>  **DAHAG Rechtsservices AG** **  
> **Am Plärrer 7 | 90443 Nürnberg  
>  Telefon: 0911/810 481-0 | Telefax: 0911/810 025-25  
> [www.dahag.de](https://www.dahag.de)
>
> Vorstand: Johannes Goth, Christian Ulshöfer, Jonas Zimmermann  
> Aufsichtsrat: Arne Hostrup (Vorsitzender)  
> HRB 24658 Nürnberg | USt-ID.: DE261181671




Re: Docker http

Posted by Stefan Kok via users <us...@nifi.apache.org>.
Hi 

I have a working example for a single nifi ldap on kubernetes if you
are interested. I would be happy to share it just beware it does not
work for a nifi cluster on kubernetes

On Fri, 2025-01-31 at 07:25 +0000, Matthias Biehler wrote:
> Hello,
>  
> I want to run nifi on Docker behind a reverse proxy. Other
> applications run on http on localhost while the reverse proxy
> terminates TLS.
> There are some env variables that can be used to configure Host and
> Port, but it seems they only exist for
> https:https://github.com/apache/nifi/blob/main/nifi-docker/dockerhub/sh/start.sh#L41-L42
> When I manually edit the config file and add http.port, the container
> fails on restart: Failed to start Server
> java.lang.IllegalStateException: Invalid port configuration in
> nifi.properties: Both nifi.web.https.port and nifi.web.http.port
> specified
>  
> Is it possible to run the container with HTTP only? If so, how can I
> configure it correctly?
> Thanks!
>  
> 
> 
> Matthias Biehler
> IT DevOps
> Telefon: 0911/810 481-3323
> E-Mail: Matthias.Biehler@dahag.de
> DAHAG Rechtsservices AG
> Am Plärrer 7 | 90443 Nürnberg
> Telefon: 0911/810 481-0 | Telefax: 0911/810 025-25
> www.dahag.de
> Vorstand: Johannes Goth, Christian Ulshöfer, Jonas Zimmermann
> Aufsichtsrat: Arne Hostrup (Vorsitzender)
> HRB 24658 Nürnberg | USt-ID.: DE261181671

-- 
Stefan Kok
079 760 6102

Re: Docker http

Posted by Juan Pablo Gardella <ga...@gmail.com>.
I'm using behind a proxy and let the proxy accept non trusted certificate
(nifi's certificate)

On Fri, Jan 31, 2025 at 4:25 AM Matthias Biehler <Ma...@dahag.de>
wrote:

> Hello,
>
>
>
> I want to run nifi on Docker behind a reverse proxy. Other applications
> run on http on localhost while the reverse proxy terminates TLS.
>
> There are some env variables that can be used to configure Host and Port,
> but it seems they only exist for https:
> https://github.com/apache/nifi/blob/main/nifi-docker/dockerhub/sh/start.sh#L41-L42
>
> When I manually edit the config file and add http.port, the container
> fails on restart: Failed to start Server java.lang.IllegalStateException:
> Invalid port configuration in nifi.properties: Both nifi.web.https.port and
> nifi.web.http.port specified
>
>
>
> Is it possible to run the container with HTTP only? If so, how can I
> configure it correctly?
>
> Thanks!
>
>
>
>
> ------------------------------
>
>
> *Matthias Biehler IT DevOps*
>
> Telefon: 0911/810 481-3323
> E-Mail: Matthias.Biehler@dahag.de
>
> *DAHAG Rechtsservices AG*
> Am Plärrer 7 | 90443 Nürnberg
> Telefon: 0911/810 481-0 | Telefax: 0911/810 025-25
> <http://www.deutsche-anwaltshotline.de>www.dahag.de
>
> Vorstand: Johannes Goth, Christian Ulshöfer, Jonas Zimmermann
> Aufsichtsrat: Arne Hostrup (Vorsitzender)
> HRB 24658 Nürnberg | USt-ID.: DE261181671
>