mirror of
https://github.com/pushbits/server.git
synced 2025-06-05 12:12:03 +02:00
Add option to control repair behavior
This commit is contained in:
parent
38b615a05d
commit
77765e77a9
9 changed files with 49 additions and 22 deletions
|
@ -39,6 +39,12 @@ type Alertmanager struct {
|
|||
AnnotationMessage string `default:"message"`
|
||||
}
|
||||
|
||||
// RepairBehavior holds information on how repair applications.
|
||||
type RepairBehavior struct {
|
||||
ResetRoomName bool `default:"true"`
|
||||
ResetRoomTopic bool `default:"true"`
|
||||
}
|
||||
|
||||
// Configuration holds values that can be configured by the user.
|
||||
type Configuration struct {
|
||||
Debug bool `default:"false"`
|
||||
|
@ -60,9 +66,10 @@ type Configuration struct {
|
|||
Security struct {
|
||||
CheckHIBP bool `default:"false"`
|
||||
}
|
||||
Crypto CryptoConfig
|
||||
Formatting Formatting
|
||||
Alertmanager Alertmanager
|
||||
Crypto CryptoConfig
|
||||
Formatting Formatting
|
||||
Alertmanager Alertmanager
|
||||
RepairBehavior RepairBehavior
|
||||
}
|
||||
|
||||
func configFiles() []string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue