Skip to content

Commit

Permalink
use yaml proxy config instead of json (because of owncloud/ocis#3366)
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed Mar 28, 2022
1 parent c56f9a2 commit 5056291
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 91 deletions.
2 changes: 1 addition & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def ocisServer(volumes = [stepVolumeOC10Tests, stepVolumeOcisConfig]):
"commands": [
"mkdir -p /etc/ocis/",
"chown 1000:1000 -R /etc/ocis/", # 1000 => equals oCIS user process
"cp /drone/src/ui/tests/config/drone/proxy-config.json /etc/ocis/proxy.json",
"cp /drone/src/ui/tests/config/drone/proxy-config.yaml /etc/ocis/proxy.yaml",
],
},
{
Expand Down
90 changes: 0 additions & 90 deletions ui/tests/config/drone/proxy-config.json

This file was deleted.

44 changes: 44 additions & 0 deletions ui/tests/config/drone/proxy-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
policy_selector:
static:
policy: oCIS
policies:
- name: oCIS
routes:
- endpoint: "/"
backend: http://localhost:9100
- endpoint: "/.well-known/"
backend: http://localhost:9130
- endpoint: "/konnect/"
backend: http://localhost:9130
- endpoint: "/signin/"
backend: http://localhost:9130
- endpoint: "/ocs/"
backend: http://localhost:9140
- type: regex
endpoint: "/ocs/v[12].php/cloud/user"
backend: http://localhost:9110
- endpoint: "/remote.php/"
backend: http://localhost:9140
- endpoint: "/dav/"
backend: http://localhost:9140
- endpoint: "/webdav/"
backend: http://localhost:9140
- endpoint: "/status.php"
backend: http://localhost:9140
- endpoint: "/index.php/"
backend: http://localhost:9140
- endpoint: "/data"
backend: http://localhost:9140
- endpoint: "/api/v0/accounts"
backend: http://localhost:9181
- endpoint: "/accounts.js"
backend: http://localhost:9181
- endpoint: "/api/v0/settings"
backend: http://localhost:9190
- endpoint: "/settings.js"
backend: http://localhost:9190
- endpoint: "/api/v0/greet"
backend: http://hello-server:9105
- endpoint: "/hello.js"
backend: http://hello-server:9105

0 comments on commit 5056291

Please sign in to comment.