I want to access kibana dashboard using proxy server. Have this nginx config.
server {
listen 443 ssl;
server_name kibana-bi.test.com www.kibana-bi.test.com;
ssl_certificate /etc/letsencrypt/live/kibana-bi.test.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/kibana-bi.test.com/privkey.pem;
rewrite ^/$ https://kibana-bi.test.com/_plugin/_dashboards redirect;
location /_plugin/_dashboards {
# Forward requests to Dashboards
proxy_pass https://vpc-test-bi-vksjhfkjsdfhkjsdfhkjsdfh.us-west-2.es.amazonaws.com/_plugin/_dashboards;
# Handle redirects to Cognito
proxy_redirect https://test.auth.us-west-2.amazoncognito.com https://kibana-bi.test.com;
# Update cookie domain and path
proxy_cookie_domain vpc-test-bi-vksjhfkjsdfhkjsdfhkjsdfh.us-west-2.es.amazonaws.com kibana-bi.lineate.com;
proxy_cookie_path / /_plugin/_dashboards/;
# Response buffer settings
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
}
location ~ /(log|sign|fav|forgot|change|saml|oauth2) {
# Forward requests to Cognito
proxy_pass https://test.auth.us-west-2.amazoncognito.com;
# Handle redirects to Dashboards
proxy_redirect https://vpc-test-bi-vksjhfkjsdfhkjsdfhkjsdfh.us-west-2.es.amazonaws.com https://kibana-bi.test.com;
# Update cookie domain
proxy_cookie_domain test.auth.us-west-2.amazoncognito.com kibana-bi.test.com;
}
}
When open kibana-bi.test.com has this error {“Message”:”Your request: ‘/_plugin/_dashboards’ is not allowed.”}