Skip to content

Instantly share code, notes, and snippets.

@chrismckinnel
Created April 18, 2016 09:13
Show Gist options
  • Save chrismckinnel/91425aaf467190281c869743e2364e46 to your computer and use it in GitHub Desktop.
Save chrismckinnel/91425aaf467190281c869743e2364e46 to your computer and use it in GitHub Desktop.
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