We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78ee655 + 9733352 commit ff77086Copy full SHA for ff77086
docs/general/post-install/networking/8_reverse-proxy/nginx.md
@@ -94,7 +94,7 @@ server {
94
95
### Censor sensitive information in logs
96
97
-This censors any 'api_key' URL parameter from the logfile.
+This censors any 'api_key' or 'ApiKey' URL parameter from the logfile.
98
99
```conf
100
#Must be in HTTP block
@@ -105,6 +105,7 @@ log_format stripsecrets '$remote_addr $host - $remote_user [$time_local] '
105
106
map $request $secretfilter {
107
~*^(?<prefix1>.*[\?&]api_key=)([^&]*)(?<suffix1>.*)$ "${prefix1}***$suffix1";
108
+ ~*^(?<prefix1>.*[\?&]ApiKey=)([^&]*)(?<suffix1>.*)$ "${prefix1}***$suffix1";
109
default $request;
110
}
111
0 commit comments