mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-06-20 15:42:41 +02:00
feat: use a in memory map to count requests for ips and log the n most active each hour
This commit is contained in:
parent
023ea17492
commit
b22d3665a9
7 changed files with 74 additions and 20 deletions
|
@ -14,7 +14,8 @@ type ServerConfig struct {
|
|||
HttpPort uint16 `default:"80"`
|
||||
HttpServerEnabled bool `default:"true"`
|
||||
UseProxyProtocol bool `default:"false"`
|
||||
LogEveryRequest bool `default:"false"`
|
||||
LogMostActiveIps bool `default:"false"`
|
||||
MostActiveIpCount uint `default:"10"`
|
||||
MainDomain string
|
||||
RawDomain string
|
||||
PagesBranches []string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue