taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 06bc7c4de7e40a362562df514d88a98e251f4b13
parent 2307a32df2f23371085d32483796986f58df04f8
Author: Florian Dold <florian.dold@gmail.com>
Date:   Tue, 30 Jan 2018 00:25:32 +0100

make ApiKey part case insensitive

Diffstat:
Metc/nginx/sites-enabled/test.site | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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; }