]> git.proxmox.com Git - ceph.git/blobdiff - ceph/examples/rgw-cache/nginx.conf
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / examples / rgw-cache / nginx.conf
index f000597da62e50b62f2fcc76462ae9892134cc87..a478db1dc935e91b413ca5a281c6853712c9340f 100644 (file)
@@ -25,6 +25,23 @@ http {
         default $http_authorization;
         ~. $aws_token;  # Regular expression to match any value
     }
+    map $request_uri $awsauthtwo {
+        "/" $http_authorization;
+        "~\?" $http_authorization;
+        default $awsauth;
+    }
+    map $request_method $awsauththree {
+        default $awsauthtwo;
+        "PUT" $http_authorization;  
+        "HEAD" $http_authorization;
+        "POST" $http_authorization;
+        "DELETE" $http_authorization;
+        "COPY" $http_authorization;
+    }
+    map $http_if_match $awsauthfour {
+        ~. $http_authorization;  # Regular expression to match any value
+        default $awsauththree;
+    }
     include       /etc/nginx/mime.types;
     default_type  application/octet-stream;
     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '