diff --git a/changelog/unreleased/add-ocm-wellknown-config.md b/changelog/unreleased/add-ocm-wellknown-config.md new file mode 100644 index 0000000000..9478e933dc --- /dev/null +++ b/changelog/unreleased/add-ocm-wellknown-config.md @@ -0,0 +1,5 @@ +Enhancement: Add OCM wellknown configuration + +We now configure the `wellknown` service for OCM. + +https://github.com/owncloud/ocis/pull/9815 diff --git a/services/ocm/pkg/revaconfig/config.go b/services/ocm/pkg/revaconfig/config.go index 7a7231df21..8346747425 100644 --- a/services/ocm/pkg/revaconfig/config.go +++ b/services/ocm/pkg/revaconfig/config.go @@ -42,6 +42,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{}, diff --git a/services/proxy/pkg/config/defaults/defaultconfig.go b/services/proxy/pkg/config/defaults/defaultconfig.go index ad16117273..07dabe77bf 100644 --- a/services/proxy/pkg/config/defaults/defaultconfig.go +++ b/services/proxy/pkg/config/defaults/defaultconfig.go @@ -114,6 +114,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",