Hi,
Im having a real nightmare
Im running an instance of ES on a box and i also have Nginx installed on the box also. This box is purely for the Plugins associated with ES.
I have 3 plugins , Kopf, BigDesk & ElasticHQ
However, KOPF works through the Nginx. I had to edit kopf_external_settings.json and set Elasticsearch_root_path "/es" Then have a Nginx Location of /es to proxy pass to localhost:9200.
location ~ ^/es.$ {
proxy_pass http://localhost:9200;
rewrite ^/es(.) /$1 break;
}
location ~ ^/kopf/.$ {
proxy_pass http://localhost:9200;
rewrite ^/kopf/(.) /_plugin/kopf/$1 break;
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;
}
That works perfectly.
However, all other plugins doesn't seem to want to work. It loads the index.html but doesn't want to connect to the ES instance.
I have the Location sex exactly the same:
location ~ ^/bigdesk/.*$ {
proxy_pass http://localhost:9200;
proxy_redirect off;
rewrite ^/bigdesk/(.*) /_plugin/bigdesk/$1 break;
#auth_basic "Restricted Content";
#auth_basic_user_file /etc/nginx/.htpasswd;
Is there anything i have to set in ES for this to work?
I've looked at Cors setting also and have set my cors.enabled to true in the ES YML and set the Allowed Origins to "*".
HTTP.Host is set to 127.0.0.1
Thank you,