forked from cs3org/reva
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement historical way of constructing OCM WebDAV URL (cs3org#3868)
* adapt webdav ocm endpoint according to historical way of contructing webdav url * add discovery endpoint in the ocm client * Make root OCM URLs configurable in /ocm-provider * add changelog * fix path for old ocm webdav * Added reverse proxy for /ocm-provider * Revert "Added reverse proxy for /ocm-provider" This reverts commit 1ecb6e4. * Moved ocm-provider to a new http service * Updated examples * Linting * Simplified ocmprovider and documented config * Further simplification + relaunching the CI * Regenerated docs * Expose OCM as disabled if no endpoint is configured for it * Update internal/http/services/owncloud/ocdav/propfind.go Co-authored-by: Giuseppe Lo Presti <giuseppe.lopresti@cern.ch> * Update internal/http/services/owncloud/ocdav/dav.go Co-authored-by: Giuseppe Lo Presti <giuseppe.lopresti@cern.ch> * Update internal/http/services/owncloud/ocdav/dav.go Co-authored-by: Giuseppe Lo Presti <giuseppe.lopresti@cern.ch> * Update internal/http/services/owncloud/ocdav/ocdav.go Co-authored-by: Giuseppe Lo Presti <giuseppe.lopresti@cern.ch> * Update internal/http/services/owncloud/ocdav/propfind.go Co-authored-by: Giuseppe Lo Presti <giuseppe.lopresti@cern.ch> * fix support legacy ocm access --------- Co-authored-by: Giuseppe Lo Presti <giuseppe.lopresti@cern.ch>
- Loading branch information
Showing
25 changed files
with
344 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Enhancement: Implement historical way of constructing OCM WebDAV URL | ||
|
||
Expose the expected WebDAV endpoint for OCM by OC10 and Nextcloud as described | ||
in https://github.com/cs3org/OCM-API/issues/70#issuecomment-1538551138 to allow | ||
reva providers to participate to mesh. | ||
|
||
https://github.com/cs3org/reva/pull/3868 | ||
https://github.com/cs3org/reva/issues/3855 |
66 changes: 66 additions & 0 deletions
66
docs/content/en/docs/config/http/services/ocmprovider/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
title: "ocmprovider" | ||
linkTitle: "ocmprovider" | ||
weight: 10 | ||
description: > | ||
Configuration for the ocmprovider service | ||
--- | ||
|
||
# _struct: config_ | ||
|
||
{{% dir name="ocm_prefix" type="string" default="ocm" %}} | ||
The prefix URL where the OCM API is served. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/http/services/ocmprovider/ocmprovider.go#L37) | ||
{{< highlight toml >}} | ||
[http.services.ocmprovider] | ||
ocm_prefix = "ocm" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="endpoint" type="string" default="http://localhost" %}} | ||
This host's URL. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/http/services/ocmprovider/ocmprovider.go#L38) | ||
{{< highlight toml >}} | ||
[http.services.ocmprovider] | ||
endpoint = "http://localhost" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="provider" type="string" default="reva" %}} | ||
A friendly name that defines this service. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/http/services/ocmprovider/ocmprovider.go#L39) | ||
{{< highlight toml >}} | ||
[http.services.ocmprovider] | ||
provider = "reva" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="webdav_root" type="string" default="/remote.php/dav/ocm" %}} | ||
The root URL of the WebDAV endpoint to serve OCM shares. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/http/services/ocmprovider/ocmprovider.go#L40) | ||
{{< highlight toml >}} | ||
[http.services.ocmprovider] | ||
webdav_root = "/remote.php/dav/ocm" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="webapp_root" type="string" default="/external/sciencemesh" %}} | ||
The root URL to serve Web apps via OCM. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/http/services/ocmprovider/ocmprovider.go#L41) | ||
{{< highlight toml >}} | ||
[http.services.ocmprovider] | ||
webapp_root = "/external/sciencemesh" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="enable_webapp" type="bool" default=false %}} | ||
Whether web apps are enabled in OCM shares. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/http/services/ocmprovider/ocmprovider.go#L42) | ||
{{< highlight toml >}} | ||
[http.services.ocmprovider] | ||
enable_webapp = false | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="enable_datatx" type="bool" default=false %}} | ||
Whether data transfers are enabled in OCM shares. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/http/services/ocmprovider/ocmprovider.go#L43) | ||
{{< highlight toml >}} | ||
[http.services.ocmprovider] | ||
enable_datatx = false | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.