mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2026-02-08 19:50:11 +00:00
feat: make logging interval configurable (#511)
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/511 Reviewed-by: Andreas Shimokawa <ashimokawa@noreply.codeberg.org> Co-authored-by: crapStone <me@crapstone.dev> Co-committed-by: crapStone <me@crapstone.dev>
This commit is contained in:
committed by
Andreas Shimokawa
parent
30bc87089c
commit
2e271575c9
@@ -117,10 +117,16 @@ var (
|
||||
},
|
||||
&cli.UintFlag{
|
||||
Name: "log-most-active-ips",
|
||||
Usage: "logs a the n most active IPs every hour",
|
||||
Usage: "logs a the n most active IPs every hour (or value of --ip-logging-interval)",
|
||||
EnvVars: []string{"LOG_MOST_ACTIVE_IPS"},
|
||||
Value: 10,
|
||||
},
|
||||
&cli.UintFlag{
|
||||
Name: "ip-logging-interval",
|
||||
Usage: "interval in seconds for ip address logging",
|
||||
EnvVars: []string{"IP_LOGGING_INTERVAL"},
|
||||
Value: 0,
|
||||
},
|
||||
|
||||
// Default branches to fetch assets from
|
||||
&cli.StringSliceFlag{
|
||||
|
||||
Reference in New Issue
Block a user