mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-13 18:00:34 -05:00
Merge pull request #9815 from owncloud/ocm-wellknown-config
add ocm wellknown config
This commit is contained in:
5
changelog/unreleased/add-ocm-wellknown-config.md
Normal file
5
changelog/unreleased/add-ocm-wellknown-config.md
Normal 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
|
||||
@@ -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{},
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user