chore(console): add customer portal link (#3837)

* feat: add customer portal link

* add customer portal to environment.json from backend

Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
Max Peintner
2022-06-24 11:18:54 +00:00
committed by GitHub
co-authored by Livio Amstutz
parent f4e91f0b5b
commit 70a108deeb
10 changed files with 65 additions and 15 deletions
+1
View File
@@ -51,6 +51,7 @@ type Config struct {
DefaultInstance command.InstanceSetup
AuditLogRetention time.Duration
SystemAPIUsers map[string]*internal_authz.SystemAPIUser
CustomerPortal string
}
func MustNewConfig(v *viper.Viper) *Config {
+1 -1
View File
@@ -194,7 +194,7 @@ func startAPIs(ctx context.Context, router *mux.Router, commands *command.Comman
return fmt.Errorf("unable to start oidc provider: %w", err)
}
c, err := console.Start(config.Console, config.ExternalSecure, oidcProvider.IssuerFromRequest, instanceInterceptor.Handler)
c, err := console.Start(config.Console, config.ExternalSecure, oidcProvider.IssuerFromRequest, instanceInterceptor.Handler, config.CustomerPortal)
if err != nil {
return fmt.Errorf("unable to start console: %w", err)
}