Amazon web services Can';t使用Cognito访问基于nginx的AWS Kibana VPC
我使用基于VPC的Elasticsearch,对于连接kibana,我使用nginx反向代理。 我被跟踪这个: 当我尝试访问(EC2实例包含nginx)时。 我有一个重定向到。相反(auth.website.com是Cognito主机) 然后我有一个502坏网关 我的nginx配置:Amazon web services Can';t使用Cognito访问基于nginx的AWS Kibana VPC,amazon-web-services,
elasticsearch,nginx,kibana,amazon-cognito,Amazon Web Services,
elasticsearch,Nginx,Kibana,Amazon Cognito,我使用基于VPC的Elasticsearch,对于连接kibana,我使用nginx反向代理。 我被跟踪这个: 当我尝试访问(EC2实例包含nginx)时。 我有一个重定向到。相反(auth.website.com是Cognito主机) 然后我有一个502坏网关 我的nginx配置: server { listen 443; server_name $host; rewrite ^/$ https://$host/_plug
server {
listen 443;
server_name $host;
rewrite ^/$ https://$host/_plugin/kibana redirect;
ssl_certificate /etc/nginx/cert.crt;
ssl_certificate_key /etc/nginx/cert.key;
ssl on;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
location /_plugin/kibana {
# Forward requests to Kibana
proxy_pass https://vpc-domain-xxxxx.region.es.amazonaws.com/_plugin/kibana;
# Handle redirects to Amazon Cognito
proxy_redirect https://auth.exmample.com https://$host;
# Update cookie domain and path
proxy_cookie_domain vpc-domain-xxxxx.region.es.amazonaws.com $host;
proxy_cookie_path / /_plugin/kibana/;
# Response buffer settings
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
}
location ~ \/(log|sign|error|fav|forgot|change|saml|oauth2) {
# Forward requests to Cognito
proxy_pass https://auth.exmample.com;
# Handle redirects to Kibana
proxy_redirect https://vpc-domain-xxxxx.region.es.amazonaws.com https://$host;
# Update cookie domain
proxy_cookie_domain auth.exmample.com $host;
}
}
谢谢你你好!我和你提到的问题是一样的。你解决了吗?你好!我和你提到的问题是一样的。你解决了吗?