mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-04 23:45:07 +00:00
cleanup
This commit is contained in:
parent
6bf96ecbd7
commit
1aaf721d92
@ -22,8 +22,8 @@ type Config struct {
|
||||
Admin *admin.Config
|
||||
Console *console.Config
|
||||
|
||||
//Log
|
||||
//Tracing tracing.TracingConfig
|
||||
//Log //TODO: add
|
||||
//Tracing tracing.TracingConfig //TODO: add
|
||||
AuthZ *authz.Config
|
||||
}
|
||||
|
||||
@ -35,7 +35,6 @@ func main() {
|
||||
loginEnabled := flag.Bool("login", true, "enable login ui")
|
||||
adminEnabled := flag.Bool("admin", true, "enable admin api")
|
||||
consoleEnabled := flag.Bool("console", true, "enable console ui")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
conf := new(Config)
|
||||
|
@ -14,7 +14,6 @@ Mgmt:
|
||||
GRPC:
|
||||
ServerPort: 60020
|
||||
GatewayPort: 60021
|
||||
SearchLimit: 100
|
||||
CustomHeaders:
|
||||
- x-caos-
|
||||
|
||||
@ -23,7 +22,6 @@ Auth:
|
||||
GRPC:
|
||||
ServerPort: 60050
|
||||
GatewayPort: 60051
|
||||
SearchLimit: 100
|
||||
CustomHeaders:
|
||||
- x-caos-
|
||||
|
||||
@ -35,7 +33,6 @@ Admin:
|
||||
GRPC:
|
||||
ServerPort: 60090
|
||||
GatewayPort: 60091
|
||||
SearchLimit: 100
|
||||
CustomHeaders:
|
||||
- x-caos-
|
||||
|
||||
|
@ -7,10 +7,6 @@ import (
|
||||
"github.com/caos/logging"
|
||||
)
|
||||
|
||||
const (
|
||||
HeaderOrgID = "x-caos-zitadel-orgid"
|
||||
)
|
||||
|
||||
type CtxKeyPermissions struct{}
|
||||
type CtxKeyData struct{}
|
||||
|
||||
|
@ -3,14 +3,12 @@ package grpc
|
||||
type Config struct {
|
||||
ServerPort string
|
||||
GatewayPort string
|
||||
SearchLimit int
|
||||
CustomHeaders []string
|
||||
}
|
||||
|
||||
func (c *Config) ToServerConfig() *ServerConfig {
|
||||
return &ServerConfig{
|
||||
Port: c.ServerPort,
|
||||
SearchLimit: c.SearchLimit,
|
||||
Port: c.ServerPort,
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,8 +21,7 @@ func (c *Config) ToGatewayConfig() *GatewayConfig {
|
||||
}
|
||||
|
||||
type ServerConfig struct {
|
||||
Port string
|
||||
SearchLimit int
|
||||
Port string
|
||||
}
|
||||
|
||||
type GatewayConfig struct {
|
||||
|
Loading…
Reference in New Issue
Block a user