feat(activitylog): store activities per resource
Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
@@ -172,6 +172,10 @@ type Nats struct {
|
||||
}
|
||||
}
|
||||
|
||||
type Activitylog struct {
|
||||
ServiceAccount ServiceAccount `yaml:"service_account"`
|
||||
}
|
||||
|
||||
// ServiceAccount is the configuration for the used service account
|
||||
type ServiceAccount struct {
|
||||
ServiceAccountID string `yaml:"service_account_id"`
|
||||
@@ -221,6 +225,7 @@ type OcisConfig struct {
|
||||
Userlog Userlog
|
||||
AuthService AuthService `yaml:"auth_service"`
|
||||
Clientlog Clientlog
|
||||
Activitylog Activitylog
|
||||
}
|
||||
|
||||
func checkConfigPath(configPath string) error {
|
||||
@@ -429,6 +434,9 @@ func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword strin
|
||||
Settings: SettingsService{
|
||||
ServiceAccountIDs: []string{serviceAccount.ServiceAccountID},
|
||||
},
|
||||
Activitylog: Activitylog{
|
||||
ServiceAccount: serviceAccount,
|
||||
},
|
||||
}
|
||||
|
||||
if insecure {
|
||||
|
||||
Reference in New Issue
Block a user