Skip to content

Commit

Permalink
switch proxy config from json to yaml (owncloud/ocis#3366)
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed Mar 28, 2022
1 parent 681072f commit a8117c0
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 108 deletions.
107 changes: 0 additions & 107 deletions deployments/examples/ocis_web/config/ocis/proxy.json

This file was deleted.

53 changes: 53 additions & 0 deletions deployments/examples/ocis_web/config/ocis/proxy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
policy_selector:
static:
policy: ocis
policies:
- name: ocis
routes:
- endpoint: "/"
backend: http://web:8080
- endpoint: "/config.json"
backend: http://localhost:9100
- endpoint: "/.well-known/"
backend: http://localhost:9130
- endpoint: "/konnect/"
backend: http://localhost:9130
- endpoint: "/signin/"
backend: http://localhost:9130
- type: regex
endpoint: "/ocs/v[12].php/cloud/(users?|groups)"
backend: http://localhost:9110
- endpoint: "/ocs/"
backend: http://localhost:9140
- type: query
endpoint: "/remote.php/?preview=1"
backend: http://localhost:9115
- 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: "/app/"
backend: http://localhost:9140
- endpoint: "/archiver"
backend: http://localhost:9140
- endpoint: "/graph/"
backend: http://localhost:9120
- endpoint: "/graph-explorer/"
backend: http://localhost:9135
- 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
2 changes: 1 addition & 1 deletion deployments/examples/ocis_web/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ services:
OCIS_INSECURE: "${INSECURE:-false}"
volumes:
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
- ./config/ocis/proxy.json:/etc/ocis/proxy.json
- ./config/ocis/proxy.yaml:/etc/ocis/proxy.yaml
- ./config/ocis/mimetypes.json:/var/tmp/ocis/app-config/mimetypes.json
- ocis-data:/var/lib/ocis
labels:
Expand Down

0 comments on commit a8117c0

Please sign in to comment.