Revert "refactor config values to constants"

This reverts commit f53504158b.
This commit is contained in:
A.Unger
2021-11-17 13:56:14 +01:00
parent f53504158b
commit a34f5b6434
5 changed files with 85 additions and 74 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",