summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/nginx/sites-enabled/test.site4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/nginx/sites-enabled/test.site b/etc/nginx/sites-enabled/test.site
index 8420010..bc2a5ca 100644
--- a/etc/nginx/sites-enabled/test.site
+++ b/etc/nginx/sites-enabled/test.site
@@ -223,7 +223,9 @@ server {
error_page 419 = @green;
recursive_error_pages on;
- if ($http_authorization != "ApiKey sandbox") {
+ # match the ApiKey part ignoring case, and the actual key
+ # with case-sensitivity on.
+ if ($http_authorization !~ "(?i)ApiKey (?-i)sandbox") {
return 401;
}