mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-01 18:48:24 -05:00
43 lines
705 B
Go
43 lines
705 B
Go
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
* Copyright 2021 The LibreGraph Authors.
|
|
*/
|
|
|
|
package server
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
// Config bundles server configuration settings.
|
|
type Config struct {
|
|
Logger logrus.FieldLogger
|
|
|
|
LDAPHandler string
|
|
|
|
LDAPListenAddr string
|
|
LDAPSListenAddr string
|
|
|
|
TLSCertFile string
|
|
TLSKeyFile string
|
|
|
|
LDAPBaseDN string
|
|
LDAPAdminDN string
|
|
|
|
LDAPAllowLocalAnonymousBind bool
|
|
|
|
BoltDBFile string
|
|
|
|
LDIFMain string
|
|
LDIFConfig string
|
|
|
|
LDIFDefaultCompany string
|
|
LDIFDefaultMailDomain string
|
|
LDIFTemplateExtraVars map[string]interface{}
|
|
|
|
Metrics prometheus.Registerer
|
|
|
|
OnReady func(*Server)
|
|
}
|