Advertisement
Guest User

Untitled

a guest
Jun 8th, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Hi,
  2.  
  3. Am trying to setup nginx to access ceph buckets.
  4. I have setup -> https://github.com/anomalizer/ngx_aws_auth
  5. Below is the nginx config . When I try to access
  6.  
  7. http://hostname:8080/test/b.html -> shows signature mismatch.
  8. I could see the request coming to ceph in logs.
  9.  
  10. server {
  11. listen 8080;
  12. server_name localhost;
  13.  
  14. #charset koi8-r;
  15. #access_log /var/log/nginx/log/host.access.log main;
  16.  
  17. location / {
  18. proxy_pass http://10.84.182.80:8080/$uri;
  19. aws_access_key GMO31LL1LECV1RH4T71K;
  20. aws_secret_key aXEf9e1Aq85VTz7Q5tkXeq4qZaEtnYP04vSTIFBB;
  21. s3_bucket test;
  22. set $url_full '$1';
  23. chop_prefix /test;
  24.  
  25. proxy_set_header Authorization $s3_auth_token;
  26. proxy_set_header x-amz-date $aws_date;
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement