-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.conf
40 lines (36 loc) · 934 Bytes
/
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
worker_processes 4;
error_log stderr info;
worker_rlimit_nofile 40000;
events {
worker_connections 8192;
}
http {
server {
listen 80;
server_name elasticsearch.gautam.com;
return 301 https://$host$request_uri;
}
server {
listen 80;
server_name kibana.gautam.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
ssl_certificate /etc/nginx/certs/server.crt;
ssl_certificate_key /etc/nginx/certs/server.key;
server_name elasticsearch.gautam.com;
location / {
proxy_pass http://elasticsearch:9200;
}
}
server {
listen 443 ssl;
ssl_certificate /etc/nginx/certs/server.crt;
ssl_certificate_key /etc/nginx/certs/server.key;
server_name kibana.gautam.com;
location / {
proxy_pass http://kibana:5601;
}
}
}