Common Module - Add SSL to Kibana

This commit is contained in:
Mike Reeves
2018-10-11 13:02:59 -04:00
parent 4272b439fd
commit 44c06c8a24
2 changed files with 11 additions and 10 deletions

View File

@@ -87,13 +87,16 @@ http {
try_files $uri $uri.html /index.html;
}
location /app/kibana {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
location /so-kibana {
proxy_pass http://{{ masterip }}:5601/;
proxy_read_timeout 90;
proxy_connect_timeout 90;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_pass http://{{ masterip }}:5601/app/kibana;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Proxy "";
rewrite ^/so-kibana/(.*)$ /$1 break;
}
error_page 404 /404.html;

View File

@@ -72,7 +72,5 @@ so-kibana:
- /opt/so/log/kibana:/var/log/kibana:rw
- /opt/so/conf/kibana/custdashboards:/usr/share/kibana/custdashboards:ro
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /etc/pki/masterssl.crt:/etc/pki/server.crt:ro
- /etc/pki/masterssl.key:/etc/pki/server.key:ro
- port_bindings:
- 0.0.0.0:5601:5601