mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-02 21:21:45 +00:00
38 lines
564 B
Go
38 lines
564 B
Go
package integration
|
|
|
|
import (
|
|
_ "embed"
|
|
|
|
"github.com/zitadel/logging"
|
|
"sigs.k8s.io/yaml"
|
|
)
|
|
|
|
type Config struct {
|
|
Log *logging.Config
|
|
Hostname string
|
|
Port uint16
|
|
Secure bool
|
|
LoginURLV2 string
|
|
LogoutURLV2 string
|
|
WebAuthNName string
|
|
}
|
|
|
|
var (
|
|
//go:embed config/client.yaml
|
|
clientYAML []byte
|
|
)
|
|
|
|
var (
|
|
loadedConfig Config
|
|
)
|
|
|
|
func init() {
|
|
if err := yaml.Unmarshal(clientYAML, &loadedConfig); err != nil {
|
|
panic(err)
|
|
}
|
|
if err := loadedConfig.Log.SetLogger(); err != nil {
|
|
panic(err)
|
|
}
|
|
SystemToken = systemUserToken()
|
|
}
|