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:
parent
30bc87089c
commit
373044f289
5 changed files with 25 additions and 2 deletions
|
@ -76,6 +76,9 @@ func mergeServerConfig(ctx *cli.Context, config *ServerConfig) {
|
|||
config.LogMostActiveIps = true
|
||||
config.MostActiveIpCount = ctx.Uint("log-most-active-ips")
|
||||
}
|
||||
if ctx.IsSet("ip-logging-interval") {
|
||||
config.LoggingInterval = ctx.Uint("ip-logging-interval")
|
||||
}
|
||||
|
||||
if ctx.IsSet("pages-domain") {
|
||||
config.MainDomain = ctx.String("pages-domain")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue