Plugins through a Nginx Reverse Proxy

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,

Can't answer to your question but just want to highlight that site plugin support is removed in 5.0.
So frontend devs are invited to move their plugins to Kibana.

Hey
Im not using Kibana sorry i should of stated.

Im just trying to access the plugins through an RP. All recourses online everyone solves the issue but never write back to their posts saying how they fixed it :frowning:

I know you are not using Kibana.

I was just saying that whatever solution you find it won't work with 5.0.

Hi Sorry,

I thought you meant Kibana.

V5 of what? Im using ES 2.3.2

Next major version of elastic stack will be 5.0

Ah okidoki :slight_smile: I get you.
Thanks Dadoonet