fix: add method

This commit is contained in:
Oleg A 2022-04-05 00:09:11 +03:00 committed by GitHub
parent a3666b3040
commit 9d2c3e0c96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,8 @@ server {
keepalive_timeout 0; keepalive_timeout 0;
set $sanitized_request $request; set $sanitized_request $request;
if ( $sanitized_request ~ (\/bot\d+):[-\w]+\/(\S+) ) { if ( $sanitized_request ~ (\w+)\s(\/bot\d+):[-\w]+\/(\S+)\s(.*) ) {
set $sanitized_request $1:<hidden-token>/$2; set $sanitized_request "$1 $2:<hidden-token>/$3 $4";
} }
access_log /var/log/nginx/access.log token_filter; access_log /var/log/nginx/access.log token_filter;