admin管理员组文章数量:1122846
I have a nginx-S3-gateway (NS3G) as frontend that pass the request for encrypted files to AWS REST API Gateway which then send the requests to a Lambda function. I'm trying to get the URI from NS3G to the Lambda function but having no luck. NS3G won't allow headers to be passed to the API Gateway. I tried the HEADER_PREFIXES_ALLOWED environment variable but it still won't pass it to the API. It just shown as empty. I guess the only other option left is to use some rewriting rule. I wrote something like this but I'm getting a 403 error on NS3G logs. Any help would be appreciated.
location ~ \.(gpg|pgp)$ {
rewrite ^/(.*)$ /dev/api_name/$1 break;
proxy_pass ;
proxy_set_header Host $host;
proxy_intercept_errors off;
proxy_set_header Authorization $s3auth;
proxy_set_header X-Amz-Security-Token $awsSessionToken;
}
本文标签: amazon web servicesNginxS3Gateway with AWS API Gateway backendStack Overflow
版权声明:本文标题:amazon web services - Nginx-S3-Gateway with AWS API Gateway backend - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736311051a1934600.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论