daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Mar 7th, 2016 767 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80;
  3.     server_name    10.6.204.104;
  4.     return         301 https://$server_name$request_uri;
  5.     }
  6. server {
  7.     listen 443;
  8.     server_name 10.6.204.104;
  9.     ssl on;
  10.     ssl_certificate           /etc/nginx/ssl/nginx.crt;
  11.     ssl_certificate_key       /etc/nginx/ssl/nginx.key;
  12.     access_log            /var/log/nginx/kibana.access.log;
  13.  
  14.     location ~ (/|/app/kibana|/bundles/|/kibana4|/status|/plugins) {
  15.       proxy_set_header        Host $host;
  16.       proxy_set_header        X-Real-IP $remote_addr;
  17.       proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
  18.       proxy_set_header        X-Forwarded-Proto $scheme;
  19.       # Fix the “It appears that your reverse proxy set up is broken" error.
  20.       proxy_pass          http://localhost:5601;
  21.       proxy_read_timeout  90;
  22.       proxy_redirect http:// https://;
  23.       rewrite /kibana4/(.*)$ /$1 break;
  24.     }
  25.  
  26.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top