ocis init: Add service accountid to settings config

This commit is contained in:
Ralf Haferkamp
2023-09-07 09:21:48 +02:00
committed by Ralf Haferkamp
parent 6fd0853fcc
commit 443598c227

View File

@@ -73,6 +73,10 @@ type IdmService struct {
ServiceUserPasswords ServiceUserPasswordsSettings `yaml:"service_user_passwords"`
}
type SettingsService struct {
ServiceAccountIDAdmin string `yaml:"service_account_id_admin"`
}
type FrontendService struct {
Archiver InsecureService
ServiceAccount ServiceAccount `yaml:"service_account"`
@@ -192,6 +196,7 @@ type OcisConfig struct {
Thumbnails ThumbnailService
Search Search
Audit Audit
Settings SettingsService `yaml:"settings"`
Sharing Sharing
StorageUsers StorageUsers `yaml:"storage_users"`
Notifications Notifications
@@ -393,6 +398,9 @@ func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword strin
Proxy: ProxyService{
ServiceAccount: serviceAccount,
},
Settings: SettingsService{
ServiceAccountIDAdmin: serviceAccount.ServiceAccountID,
},
}
if insecure {