forked from CogStack/CogStack-NiFi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
executable file
·69 lines (50 loc) · 1.53 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
worker_processes 1;
events { worker_connections 1024; }
http {
upstream elasticsearch {
server elasticsearch-1:9200;
}
upstream kibana {
server kibana:5601;
}
sendfile on;
upstream nifi {
server nifi:8080;
}
server {
listen 9200;
server_name elasticsearch.local;
location / {
proxy_pass http://elasticsearch;
proxy_set_header X-ProxyScheme http;
proxy_set_header X-ProxyHost nginx.docker.localhost;
proxy_set_header X-ProxyPort 9200;
proxy_set_header X-ProxyContextPath /;
}
}
server {
listen 5601;
server_name kibana.local;
location / {
proxy_pass http://kibana;
proxy_set_header X-ProxyScheme http;
proxy_set_header X-ProxyHost nginx.docker.localhost;
proxy_set_header X-ProxyPort 5601;
proxy_set_header X-ProxyContextPath /;
}
}
server {
listen 8080;
server_name nifi.local;
location / {
proxy_pass http://nifi;
#proxy_set_header X-ProxyHost localhost;
proxy_set_header X-ProxyHost nginx.docker.localhost;
proxy_set_header X-ProxyPort 8080;
proxy_set_header X-ProxyContextPath /;
proxy_set_header X-ProxyScheme http;
auth_basic "NiFi Login";
auth_basic_user_file /etc/apache2/.htpasswd;
}
}
}