Merge pull request #2624 from owncloud/configuration_streamlining

[deployment-examples] streamline configuration
This commit is contained in:
Willy Kloucek
2021-10-18 09:48:43 +02:00
committed by GitHub
7 changed files with 63 additions and 27 deletions

View File

@@ -76,6 +76,10 @@
"endpoint": "/graph/",
"backend": "http://localhost:9120"
},
{
"endpoint": "/app/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/graph-explorer/",
"backend": "http://localhost:9135"

View File

@@ -12,12 +12,42 @@
"selector_cookie_name": "owncloud-selector",
"default_policy": "oc10",
"matches_policies": [
{"priority": 10, "property": "mail", "match": "marie@example.org", "policy": "ocis"},
{"priority": 20, "property": "mail", "match": "[^@]+@example.org", "policy": "oc10"},
{"priority": 30, "property": "username", "match": "(einstein|feynman)", "policy": "ocis"},
{"priority": 40, "property": "username", "match": ".+", "policy": "oc10"},
{"priority": 50, "property": "id", "match": "4c510ada-c86b-4815-8820-42cdf82c3d51", "policy": "ocis"},
{"priority": 60, "property": "id", "match": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c", "policy": "oc10"}
{
"priority": 10,
"property": "mail",
"match": "marie@example.org",
"policy": "ocis"
},
{
"priority": 20,
"property": "mail",
"match": "[^@]+@example.org",
"policy": "oc10"
},
{
"priority": 30,
"property": "username",
"match": "(einstein|feynman)",
"policy": "ocis"
},
{
"priority": 40,
"property": "username",
"match": ".+",
"policy": "oc10"
},
{
"priority": 50,
"property": "id",
"match": "4c510ada-c86b-4815-8820-42cdf82c3d51",
"policy": "ocis"
},
{
"priority": 60,
"property": "id",
"match": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c",
"policy": "oc10"
}
],
"unauthenticated_policy": "oc10"
}
@@ -80,6 +110,10 @@
"endpoint": "/data",
"backend": "http://localhost:9140"
},
{
"endpoint": "/app/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/graph/",
"backend": "http://localhost:9120"

View File

@@ -66,6 +66,10 @@
"endpoint": "/data",
"backend": "http://localhost:9140"
},
{
"endpoint": "/app/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/graph/",
"backend": "http://localhost:9120"

View File

@@ -299,10 +299,6 @@ func defaultPolicies() []config.Policy {
Endpoint: "/ocs/v[12].php/cloud/(users?|groups)", // we have `user`, `users` and `groups` in ocis-ocs
Backend: "http://localhost:9110",
},
{
Endpoint: "/app/",
Backend: "http://localhost:9140",
},
{
Endpoint: "/ocs/",
Backend: "http://localhost:9140",
@@ -336,6 +332,10 @@ func defaultPolicies() []config.Policy {
Endpoint: "/data",
Backend: "http://localhost:9140",
},
{
Endpoint: "/app/",
Backend: "http://localhost:9140",
},
{
Endpoint: "/graph/",
Backend: "http://localhost:9120",