Created
October 22, 2013 07:27
-
-
Save stevendeboer/7096511 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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