From 64717a6a1107d453f79a44da5cefdbb12b1fd18d Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 16 Dec 2021 14:54:43 +0800 Subject: [PATCH] update nifi --- nifi/docker-compose-cluster.yml | 1 - nifi/docker-compose.yml | 1 - nifi/nginx.conf | 7 ++----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/nifi/docker-compose-cluster.yml b/nifi/docker-compose-cluster.yml index 4dda802..96d3450 100644 --- a/nifi/docker-compose-cluster.yml +++ b/nifi/docker-compose-cluster.yml @@ -8,7 +8,6 @@ services: - "10000:10000" environment: - NIFI_WEB_HTTP_PORT=8080 - - NIFI_WEB_PROXY_CONTEXT_PATH=// # FIX BUG - NIFI_CLUSTER_IS_NODE=true - NIFI_CLUSTER_NODE_PROTOCOL_PORT=8082 - NIFI_REMOTE_INPUT_SOCKET_PORT=10000 diff --git a/nifi/docker-compose.yml b/nifi/docker-compose.yml index d372c84..f4fd094 100644 --- a/nifi/docker-compose.yml +++ b/nifi/docker-compose.yml @@ -17,7 +17,6 @@ services: - ./data/nifi/logs:/opt/nifi/nifi-current/logs environment: - NIFI_WEB_HTTP_PORT=8080 - - NIFI_WEB_PROXY_CONTEXT_PATH=// # FIX BUG - NIFI_SENSITIVE_PROPS_KEY=00000000-0000-0000-0000-000000000000 - NIFI_JVM_HEAP_INIT=8g - NIFI_JVM_HEAP_MAX=16g diff --git a/nifi/nginx.conf b/nifi/nginx.conf index 42ea32b..acecbc0 100644 --- a/nifi/nginx.conf +++ b/nifi/nginx.conf @@ -12,13 +12,10 @@ server { ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; location / { - if ($request_uri ~* "\/\/") { - rewrite ^/(.*) $scheme://$host/$1 permanent; # FIXME: squeeze forward slash - } proxy_set_header X-ProxyScheme https; proxy_set_header X-ProxyHost $host; proxy_set_header X-ProxyPort 443; - proxy_set_header X-ProxyContextPath /; + proxy_set_header X-ProxyContextPath ""; proxy_pass http://127.0.0.1:8080; } location /nifi-registry { @@ -26,7 +23,7 @@ server { proxy_set_header X-ProxyScheme https; proxy_set_header X-ProxyHost $host; proxy_set_header X-ProxyPort 443; - proxy_set_header X-ProxyContextPath /; + proxy_set_header X-ProxyContextPath ""; proxy_pass http://127.0.0.1:18080; } }