Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming. Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
18 lines
340 B
Go
18 lines
340 B
Go
package server
|
|
|
|
func (s *Server) getDomainConfig(key string, domainUUID ...string) string {
|
|
var (
|
|
value string
|
|
err error
|
|
)
|
|
if len(domainUUID) > 0 && domainUUID[0] != "" {
|
|
value, err = s.store.GetConfigInDomain(domainUUID[0], key)
|
|
} else {
|
|
value, err = s.store.GetConfig(key)
|
|
}
|
|
if err != nil {
|
|
return ""
|
|
}
|
|
return value
|
|
}
|