serverOptions: add config options for banning (not yet implemented)
This commit is contained in:
parent
e95238f6a0
commit
ced027c57d
@ -15,6 +15,7 @@ type ServerOptions struct {
|
|||||||
AllowDBDownload bool
|
AllowDBDownload bool
|
||||||
RecentChanges int
|
RecentChanges int
|
||||||
GzipCompressionLevel int
|
GzipCompressionLevel int
|
||||||
|
BannedUserIPRegexes []string
|
||||||
}
|
}
|
||||||
|
|
||||||
func DefaultOptions() *ServerOptions {
|
func DefaultOptions() *ServerOptions {
|
||||||
@ -29,5 +30,6 @@ func DefaultOptions() *ServerOptions {
|
|||||||
AllowDBDownload: true,
|
AllowDBDownload: true,
|
||||||
RecentChanges: 20,
|
RecentChanges: 20,
|
||||||
GzipCompressionLevel: 9,
|
GzipCompressionLevel: 9,
|
||||||
|
BannedUserIPRegexes: make([]string, 0),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user