Chun-Sheng, Li created NIFI-14826:
-------------------------------------

             Summary: Correct the enabling HTTP mode in the start.sh script
                 Key: NIFI-14826
                 URL: https://issues.apache.org/jira/browse/NIFI-14826
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Docker
    Affects Versions: 2.5.0, 2.4.0, 2.3.0, 2.2.0, 2.1.0, 2.0.0
         Environment: The NiFi is run as the container in the Docker engine.
            Reporter: Chun-Sheng, Li
             Fix For: 2.6.0


When running the NiFi in the Docker environment, it will run the `start.sh` 
script to run the NiFi platform.

According to the 
[start.sh]([https://github.com/apache/nifi/blob/rel/nifi-2.5.0/nifi-docker/dockerhub/sh/start.sh),]
 it seems that some configurations have been problematic and conflicts when we 
need to run the NiFi with enabling the HTTP mode.

To resolve the above issue, I recommend the following approach:
 * Implement the `comment` function to add the comment for some configuration 
in the `common.sh` file.
 * Defining the `NIFI_WEB_HTTPS_ENABLE` environment variable and the default is 
not set.
 * When this environment variable is not set, it will disable the secure mode.
 ** Add the comment or replace property for related enabling HTTP 
configurations.
 * When this environment variable is set, it will enable the secure mode.
 ** Replace property for related enabling HTTPS configurations.

Once this issue has been resolved, the 
[README.md]([https://github.com/apache/nifi/tree/rel/nifi-2.5.0/nifi-docker/dockerhub#readme)]
 should add the changes in the `Latest changes` section.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to