Skip to content

Commit 3b4bf89

Browse files
committed
update nifi
1 parent 041c1c6 commit 3b4bf89

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

nifi/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
services:
66

77
init-nifi:
8-
image: apache/nifi:2.3.0
8+
image: apache/nifi:2.4.0
99
entrypoint: ["bash", "-c"]
1010
command: ["test -f /tmp/bootstrap.conf || cp -v /opt/nifi/nifi-current/conf/* /tmp"]
1111
volumes:
1212
- init-nifi-conf:/opt/nifi/nifi-current/conf
1313
- ./data/nifi/conf:/tmp
1414

1515
nifi:
16-
image: apache/nifi:2.3.0
16+
image: apache/nifi:2.4.0
1717
ports:
1818
- "8443:8443"
1919
volumes:
@@ -39,7 +39,7 @@ services:
3939
restart: unless-stopped
4040

4141
registry:
42-
image: apache/nifi-registry:2.3.0
42+
image: apache/nifi-registry:2.4.0
4343
ports:
4444
- "18080:18080"
4545
volumes:

nifi/nginx.conf

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,20 @@ server {
1212
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
1313
ssl_ciphers HIGH:!aNULL:!MD5;
1414
location / {
15-
proxy_set_header X-ProxyScheme https;
16-
proxy_set_header X-ProxyHost $host;
17-
proxy_set_header X-ProxyPort 443;
18-
proxy_set_header X-ProxyContextPath "";
19-
proxy_pass http://127.0.0.1:8080;
15+
proxy_set_header X-ProxyScheme https;
16+
proxy_set_header X-ProxyHost $host;
17+
proxy_set_header X-ProxyPort 443;
18+
proxy_set_header X-ProxyContextPath "";
19+
proxy_set_header Host nifi;
20+
proxy_ssl_verify off;
21+
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
22+
proxy_pass https://172.16.1.9:8443;
2023
}
2124
location /nifi-registry {
22-
proxy_set_header Origin http://172.16.1.9:18080;
23-
proxy_set_header X-ProxyScheme https;
24-
proxy_set_header X-ProxyHost $host;
25-
proxy_set_header X-ProxyPort 443;
26-
proxy_set_header X-ProxyContextPath "";
27-
proxy_pass http://127.0.0.1:18080;
25+
proxy_set_header X-ProxyScheme https;
26+
proxy_set_header X-ProxyHost $host;
27+
proxy_set_header X-ProxyPort 443;
28+
proxy_set_header X-ProxyContextPath "";
29+
proxy_pass http://127.0.0.1:18080;
2830
}
2931
}

0 commit comments

Comments
 (0)