add missing unprotected flag and fix proxy test

This commit is contained in:
David Christofas
2022-08-30 12:30:12 +02:00
committed by Ralf Haferkamp
parent 69ba80562e
commit 90574268d9
2 changed files with 22 additions and 9 deletions

View File

@@ -99,6 +99,12 @@ func DefaultPolicies() []config.Policy {
Endpoint: "/ocs/v[12].php/cloud/user/signing-key", // only `user/signing-key` is left in ocis-ocs
Backend: "http://localhost:9110",
},
{
Type: config.RegexRoute,
Endpoint: "/ocs/v[12].php/config",
Backend: "http://localhost:9140",
Unprotected: true,
},
{
Endpoint: "/ocs/",
Backend: "http://localhost:9140",
@@ -145,12 +151,14 @@ func DefaultPolicies() []config.Policy {
Service: "com.owncloud.web.ocdav",
},
{
Endpoint: "/status",
Service: "com.owncloud.web.ocdav",
Endpoint: "/status",
Service: "com.owncloud.web.ocdav",
Unprotected: true,
},
{
Endpoint: "/status.php",
Service: "com.owncloud.web.ocdav",
Endpoint: "/status.php",
Service: "com.owncloud.web.ocdav",
Unprotected: true,
},
{
Endpoint: "/index.php/",
@@ -161,8 +169,9 @@ func DefaultPolicies() []config.Policy {
Service: "com.owncloud.web.ocdav",
},
{
Endpoint: "/data",
Backend: "http://localhost:9140",
Endpoint: "/data",
Backend: "http://localhost:9140",
Unprotected: true,
},
{
Endpoint: "/app/", // /app or /apps? ocdav only handles /apps