From 2e49febb6c6d7d4d6c9028a7938bf5aa5530280d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Wed, 29 Jul 2020 14:55:26 +0200 Subject: [PATCH] add settings and ocs group routes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- changelog/unreleased/settings-and-ocs | 5 +++++ pkg/proxy/proxy.go | 18 +++++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 changelog/unreleased/settings-and-ocs diff --git a/changelog/unreleased/settings-and-ocs b/changelog/unreleased/settings-and-ocs new file mode 100644 index 0000000000..1fdb67e05f --- /dev/null +++ b/changelog/unreleased/settings-and-ocs @@ -0,0 +1,5 @@ +Change: add settings and ocs group routes + +Route settings requests and ocs group related requests to new services + +https://github.com/owncloud/ocis-proxy/pull/81 diff --git a/pkg/proxy/proxy.go b/pkg/proxy/proxy.go index b5641c7d00..a489bae027 100644 --- a/pkg/proxy/proxy.go +++ b/pkg/proxy/proxy.go @@ -250,13 +250,13 @@ func defaultPolicies() []config.Policy { Backend: "http://localhost:9130", }, { - Endpoint: "/ocs/", - Backend: "http://localhost:9140", + Type: config.RegexRoute, + Endpoint: "/ocs/v[12].php/cloud/user", // we have `user` and `users` in ocis-ocs + Backend: "http://localhost:9110", }, { - Type: config.RegexRoute, - Endpoint: "/ocs/v[12].php/cloud/user",// we have `user` and `users` in ocis-ocs - Backend: "http://localhost:9110", + Endpoint: "/ocs/", + Backend: "http://localhost:9140", }, { Type: config.QueryRoute, @@ -297,6 +297,14 @@ func defaultPolicies() []config.Policy { Endpoint: "/accounts.js", Backend: "http://localhost:9181", }, + { + Endpoint: "/api/v0/settings", + Backend: "http://localhost:9190", + }, + { + Endpoint: "/settings.js", + Backend: "http://localhost:9190", + }, }, }, {