mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-08-07 05:14:57 -04:00
Merge pull request #9815 from owncloud/ocm-wellknown-config
add ocm wellknown config
This commit is contained in:
3 files changed
+22
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
Enhancement: Add OCM wellknown configuration
|
||||||
|
|
||||||
|
We now configure the `wellknown` service for OCM.
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/9815
|
||||||
@@ -42,6 +42,18 @@ func OCMConfigFromStruct(cfg *config.Config, logger log.Logger) map[string]inter
|
|||||||
},
|
},
|
||||||
// TODO build services dynamically
|
// TODO build services dynamically
|
||||||
"services": map[string]interface{}{
|
"services": map[string]interface{}{
|
||||||
|
"wellknown": map[string]interface{}{
|
||||||
|
"prefix": ".well-known",
|
||||||
|
"ocmprovider": map[string]interface{}{
|
||||||
|
"ocm_prefix": cfg.OCMD.Prefix,
|
||||||
|
"endpoint": cfg.Commons.OcisURL,
|
||||||
|
"provider": "oCIS",
|
||||||
|
"webdav_root": "/dav/ocm",
|
||||||
|
"webapp_root": cfg.ScienceMesh.Prefix,
|
||||||
|
"enable_webapp": false,
|
||||||
|
"enable_datatx": false,
|
||||||
|
},
|
||||||
|
},
|
||||||
"sciencemesh": map[string]interface{}{
|
"sciencemesh": map[string]interface{}{
|
||||||
"prefix": cfg.ScienceMesh.Prefix,
|
"prefix": cfg.ScienceMesh.Prefix,
|
||||||
"smtp_credentials": map[string]string{},
|
"smtp_credentials": map[string]string{},
|
||||||
|
|||||||
@@ -114,6 +114,11 @@ func DefaultPolicies() []config.Policy {
|
|||||||
Service: "com.owncloud.web.web",
|
Service: "com.owncloud.web.web",
|
||||||
Unprotected: true,
|
Unprotected: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Endpoint: "/.well-known/ocm",
|
||||||
|
Service: "com.owncloud.web.ocm",
|
||||||
|
Unprotected: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
Endpoint: "/.well-known/webfinger",
|
Endpoint: "/.well-known/webfinger",
|
||||||
Service: "com.owncloud.web.webfinger",
|
Service: "com.owncloud.web.webfinger",
|
||||||
|
|||||||
Reference in new issue
Block a user