Skip to content

Instantly share code, notes, and snippets.

@joydragon
Created August 15, 2020 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joydragon/64e22d0f28724c24f526de806f7ae67a to your computer and use it in GitHub Desktop.
Save joydragon/64e22d0f28724c24f526de806f7ae67a to your computer and use it in GitHub Desktop.
Archivo para configurar Elasticsearch detrás de NGINX (puerto 19200)
upstream elasticsearch {
server 127.0.0.1:19200;
keepalive 15;
}
server {
listen 9200;
location / {
limit_except GET POST PUT {
allow 127.0.0.1/32;
deny all;
}
proxy_pass http://elasticsearch;
proxy_redirect off;
proxy_buffering off;
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