From 9d2c3e0c967b236045db54c427f3dee2e3240682 Mon Sep 17 00:00:00 2001 From: Oleg A Date: Tue, 5 Apr 2022 00:09:11 +0300 Subject: [PATCH] fix: add method --- example/nginx/default.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/nginx/default.conf b/example/nginx/default.conf index 1701e8f..0ebe396 100644 --- a/example/nginx/default.conf +++ b/example/nginx/default.conf @@ -21,8 +21,8 @@ server { keepalive_timeout 0; set $sanitized_request $request; - if ( $sanitized_request ~ (\/bot\d+):[-\w]+\/(\S+) ) { - set $sanitized_request $1:/$2; + if ( $sanitized_request ~ (\w+)\s(\/bot\d+):[-\w]+\/(\S+)\s(.*) ) { + set $sanitized_request "$1 $2:/$3 $4"; } access_log /var/log/nginx/access.log token_filter;