1
0
Fork 0
mirror of https://codeberg.org/Codeberg/pages-server.git synced 2025-09-30 21:42:05 +00:00

feat: make logging interval configurable

This commit is contained in:
crapStone 2025-09-08 16:36:11 +02:00
parent 30bc87089c
commit 373044f289
No known key found for this signature in database
GPG key ID: 22D4BF0CF7CC29C8
5 changed files with 25 additions and 2 deletions

View file

@ -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{