Skip to content

Instantly share code, notes, and snippets.

@stevendeboer
Created October 22, 2013 07:27
Show Gist options
  • Save stevendeboer/7096511 to your computer and use it in GitHub Desktop.
Save stevendeboer/7096511 to your computer and use it in GitHub Desktop.
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
server {
listen *:80 ;
server_name server.domain.local;
access_log /var/log/nginx/server.domain.local.access.log;
location / {
proxy_pass http://127.0.0.1:81;
proxy_read_timeout 90;
auth_basic "Restricted";
auth_basic_user_file passwords;
#root /var/www/kibana/src;
#index index.html index.htm;
}
location ~ ^/_aliases$ {
auth_basic "Restricted";
auth_basic_user_file passwords;
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
}
location ~ ^/.*/_search$ {
auth_basic "Restricted";
auth_basic_user_file passwords;
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
}
location ~ ^/.*/_mapping$ {
auth_basic "Restricted";
auth_basic_user_file passwords;
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
}
# Password protected end points
location ~ ^/kibana-int/dashboard/.*$ {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
limit_except GET {
proxy_pass http://127.0.0.1:9200;
auth_basic "Restricted";
auth_basic_user_file passwords;
}
}
location ~ ^/kibana-int/temp.*$ {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
limit_except GET {
proxy_pass http://127.0.0.1:9200;
auth_basic "Restricted";
auth_basic_user_file passwords;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment