Created
August 15, 2020 22:24
-
-
Save joydragon/64e22d0f28724c24f526de806f7ae67a to your computer and use it in GitHub Desktop.
Archivo para configurar Elasticsearch detrás de NGINX (puerto 19200)
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
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