Revert "fixed code smells: string literal repetition + cyclomatic complexity"

This reverts commit aa4112e2e2.
This commit is contained in:
A.Unger
2021-11-17 13:19:31 +01:00
parent aa4112e2e2
commit ff611633f5
7 changed files with 98 additions and 95 deletions
+3 -6
View File
@@ -6,8 +6,6 @@ import (
"github.com/owncloud/ocis/ocis-pkg/shared"
)
const defaultIngressURL = "https://localhost:9200"
// Debug defines the available debug configuration.
type Debug struct {
Addr string `mapstructure:"addr"`
@@ -108,7 +106,6 @@ func New() *Config {
}
func DefaultConfig() *Config {
return &Config{
Debug: Debug{
Addr: "127.0.0.1:9104",
@@ -134,15 +131,15 @@ func DefaultConfig() *Config {
},
Web: Web{
Path: "",
ThemeServer: defaultIngressURL,
ThemeServer: "https://localhost:9200",
ThemePath: "/themes/owncloud/theme.json",
Config: WebConfig{
Server: defaultIngressURL,
Server: "https://localhost:9200",
Theme: "",
Version: "0.1.0",
OpenIDConnect: OIDC{
MetadataURL: "",
Authority: defaultIngressURL,
Authority: "https://localhost:9200",
ClientID: "web",
ResponseType: "code",
Scope: "openid profile email",