mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-06-29 19:52:40 +02:00
feat: add option to log the n most active IPs each hour (#496)
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/496 Co-authored-by: crapStone <me@crapstone.dev> Co-committed-by: crapStone <me@crapstone.dev>
This commit is contained in:
parent
d27c594c28
commit
5477ba2c46
8 changed files with 97 additions and 5 deletions
|
@ -115,6 +115,12 @@ var (
|
|||
EnvVars: []string{"USE_PROXY_PROTOCOL"},
|
||||
Value: false,
|
||||
},
|
||||
&cli.UintFlag{
|
||||
Name: "log-most-active-ips",
|
||||
Usage: "logs a the n most active IPs every hour",
|
||||
EnvVars: []string{"LOG_MOST_ACTIVE_IPS"},
|
||||
Value: 10,
|
||||
},
|
||||
|
||||
// Default branches to fetch assets from
|
||||
&cli.StringSliceFlag{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue