add ocm wellknown config

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2024-08-14 21:53:55 +02:00
parent 5120b86d92
commit 1faa36f303
3 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
Enhancement: Add OCM wellknown configuration
We now configure the `wellknown` service for OCM.
https://github.com/owncloud/ocis/pull/9815

View File

@@ -41,6 +41,18 @@ func OCMConfigFromStruct(cfg *config.Config, logger log.Logger) map[string]inter
},
// TODO build services dynamically
"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{}{
"prefix": cfg.ScienceMesh.Prefix,
"smtp_credentials": map[string]string{},

View File

@@ -112,6 +112,11 @@ func DefaultPolicies() []config.Policy {
Service: "com.owncloud.web.web",
Unprotected: true,
},
{
Endpoint: "/.well-known/ocm",
Service: "com.owncloud.web.ocm",
Unprotected: true,
},
{
Endpoint: "/.well-known/webfinger",
Service: "com.owncloud.web.webfinger",