use oCIS only proxy config for documentation
This commit is contained in:
@@ -52,8 +52,6 @@ func DefaultConfig() *config.Config {
|
|||||||
AutoprovisionAccounts: false,
|
AutoprovisionAccounts: false,
|
||||||
EnableBasicAuth: false,
|
EnableBasicAuth: false,
|
||||||
InsecureBackends: false,
|
InsecureBackends: false,
|
||||||
// TODO: enable
|
|
||||||
//Policies: defaultPolicies(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -152,66 +150,6 @@ func DefaultPolicies() []config.Policy {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Name: "oc10",
|
|
||||||
Routes: []config.Route{
|
|
||||||
{
|
|
||||||
Endpoint: "/",
|
|
||||||
Backend: "http://localhost:9100",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Endpoint: "/.well-known/",
|
|
||||||
Backend: "http://localhost:9130",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Endpoint: "/konnect/",
|
|
||||||
Backend: "http://localhost:9130",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Endpoint: "/signin/",
|
|
||||||
Backend: "http://localhost:9130",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Endpoint: "/archiver",
|
|
||||||
Backend: "http://localhost:9140",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Endpoint: "/ocs/",
|
|
||||||
Backend: "https://demo.owncloud.com",
|
|
||||||
ApacheVHost: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Endpoint: "/remote.php/",
|
|
||||||
Backend: "https://demo.owncloud.com",
|
|
||||||
ApacheVHost: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Endpoint: "/dav/",
|
|
||||||
Backend: "https://demo.owncloud.com",
|
|
||||||
ApacheVHost: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Endpoint: "/webdav/",
|
|
||||||
Backend: "https://demo.owncloud.com",
|
|
||||||
ApacheVHost: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Endpoint: "/status.php",
|
|
||||||
Backend: "https://demo.owncloud.com",
|
|
||||||
ApacheVHost: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Endpoint: "/index.php/",
|
|
||||||
Backend: "https://demo.owncloud.com",
|
|
||||||
ApacheVHost: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Endpoint: "/data",
|
|
||||||
Backend: "https://demo.owncloud.com",
|
|
||||||
ApacheVHost: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -247,6 +185,14 @@ func Sanitize(cfg *config.Config) {
|
|||||||
cfg.Policies = DefaultPolicies()
|
cfg.Policies = DefaultPolicies()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if cfg.PolicySelector == nil {
|
||||||
|
cfg.PolicySelector = &config.PolicySelector{
|
||||||
|
Static: &config.StaticSelectorConf{
|
||||||
|
Policy: "ocis",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if cfg.HTTP.Root != "/" {
|
if cfg.HTTP.Root != "/" {
|
||||||
cfg.HTTP.Root = strings.TrimSuffix(cfg.HTTP.Root, "/")
|
cfg.HTTP.Root = strings.TrimSuffix(cfg.HTTP.Root, "/")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user