mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-07 04:40:05 -06:00
add ocm wellknown config
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
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
|
||||
@@ -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{},
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user