Merge pull request #9815 from owncloud/ocm-wellknown-config

add ocm wellknown config
This commit is contained in:
Jörn Friedrich Dreyer authored and GitHub committed 2024-10-04 10:13:16 +02:00
commit d29e09f0c1
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
+12
View File
@@ -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",