Created
April 18, 2016 09:13
-
-
Save chrismckinnel/91425aaf467190281c869743e2364e46 to your computer and use it in GitHub Desktop.
This file contains 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
events { | |
worker_connections 1024; | |
} | |
http { | |
upstream elasticsearch { | |
server 127.0.0.1:9200; | |
keepalive 15; | |
} | |
server { | |
listen 80; | |
location / { | |
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/users; | |
proxy_pass http://elasticsearch; | |
proxy_http_version 1.1; | |
proxy_set_header Connection "Keep-Alive"; | |
proxy_set_header Proxy-Connection "Keep-Alive"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment