Make corredor calls more configurable
JWT is now sent as part of the Config prop, along with msg/sys/cmp base api URLs This still needs to be configured through env: - CORREDOR_API_BASE_URL_SYSTEM - CORREDOR_API_BASE_URL_MESSAGING - CORREDOR_API_BASE_URL_COMPOSE
This commit is contained in:
@@ -15,7 +15,11 @@ type (
|
||||
Log bool `env:"CORREDOR_LOG_ENABLED"`
|
||||
|
||||
MaxBackoffDelay time.Duration `env:"CORREDOR_MAX_BACKOFF_DELAY"`
|
||||
Log bool `env:"CORREDOR_LOG_ENABLED"`
|
||||
|
||||
// @todo do autodiscovery & prefill these with values we know
|
||||
ApiBaseURLSystem string `env:"CORREDOR_API_BASE_URL_SYSTEM"`
|
||||
ApiBaseURLMessaging string `env:"CORREDOR_API_BASE_URL_MESSAGING"`
|
||||
ApiBaseURLCompose string `env:"CORREDOR_API_BASE_URL_COMPOSE"`
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user