Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix single service example #3764

Merged
merged 12 commits into from
Jun 2, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@
OCIS_DOMAIN: ocis.ocis-individual-services.latest.owncloud.works
DEMO_USERS: "true"
COMPOSE_FILE: docker-compose.yml:monitoring_tracing/docker-compose-additions.yml
IDP_LDAP_BIND_PASSWORD: "elirwlketrwe53453rt"
STORAGE_LDAP_BIND_PASSWORD: "ekrwelkjrtlkwertjlkertkert3423"
OCIS_JWT_SECRET: "kdfjlkertlk234534534589345"
OCIS_MACHINE_AUTH_API_KEY: "rekwelkrjttwer534534-5"
SYSTEM_USER_API_KEY: "ekrjwelrtj235345345g,mdfglk.ert"
IDM_SVC_PASSWORD: "kljrhewrlkj3479734534t"
IDM_REVASVC_PASSWORD: "lklkjhuihir2342839i90o4dsadsd"
IDM_IDPSVC_PASSWORD: "jrhekr3453458734tkjert"
OCIS_SYSTEM_USER_ID: "d9d0f4d1-fe3c-457e-92e3-e18b3b366bbe"
SYSTEM_USER_ID: "3693ecf8-4164-4879-bdf3-ea3425df3c6e"
ADMIN_USER_ID: "09246a85-682a-4cd5-996d-8e8d2aca50af"
ADMIN_USER_PASSWORD: "admin"
PROXY_ENABLE_BASIC_AUTH: "true"
- name: monitoring
git_url: https://github.com/owncloud-devops/monitoring-tracing-client.git
ref: master
Expand Down
2 changes: 1 addition & 1 deletion deployments/examples/oc10_ocis_parallel/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3.7"

services:
traefik:
image: traefik:v2.5
image: traefik:v2.6.6
networks:
ocis-net:
aliases:
Expand Down
2 changes: 1 addition & 1 deletion deployments/examples/ocis_hello/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3.7"

services:
traefik:
image: traefik:v2.5
image: traefik:v2.6.6
networks:
ocis-net:
aliases:
Expand Down
19 changes: 19 additions & 0 deletions deployments/examples/ocis_individual_services/.env
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,28 @@ OCIS_JWT_SECRET=
STORAGE_TRANSFER_SECRET=
# Machine auth api key secret. Must be changed in order to have a secure oCIS. Defaults to "change-me-please"
OCIS_MACHINE_AUTH_API_KEY=
# System user machine auth api key. Must be changed in order to have a secure oCIS. Defaults to "change-me-please"
SYSTEM_USER_API_KEY=
# Number of services to run for extensions, that currently can be easily scaled. Defaults to 1.
OCIS_SCALE=

# IDM service user password, set to a random string, defaults to "changeme"
IDM_SVC_PASSWORD=
# IDM Reva service user password, set to a random string, defaults to "changeme"
IDM_REVASVC_PASSWORD=
# IDM IDP service user password, set to a random string, defaults to "changeme"
IDM_IDPSVC_PASSWORD=
# OCIS system user id, set to a random string, defaults to "changeme"
OCIS_SYSTEM_USER_ID=
dragonchaser marked this conversation as resolved.
Show resolved Hide resolved
# System user id, set to a random string, defaults to "changeme"
SYSTEM_USER_ID=
# Admin user id, set to a random UUIDv4 defaults to "-09246a85-682a-4cd5-996d-8e8d2aca50af"
ADMIN_USER_ID=
# Admin user password, set to random string defaults to "changeme"
ADMIN_USER_PASSWORD=
# Enable basic auth for proxy, set to bool, defaults to "true"
PROXY_ENABLE_BASIC_AUTH=

# If you want to use debugging and tracing with this stack,
# you need uncomment following line. Please see documentation at
# https://owncloud.dev/ocis/deployment/monitoring-tracing/
Expand Down

This file was deleted.

104 changes: 56 additions & 48 deletions deployments/examples/ocis_individual_services/config/proxy/proxy.yaml
Original file line number Diff line number Diff line change
@@ -1,51 +1,59 @@
---

policies:
- name: ocis
routes:
- endpoint: /
backend: http://web:9100
- endpoint: /.well-known/
backend: http://idp:9130
- endpoint: /konnect/
backend: http://idp:9130
- endpoint: /signin/
backend: http://idp:9130
- endpoint: /archiver
backend: http://frontend:9140
- type: regex
endpoint: /ocs/v[12].php/cloud/user/signing-key
backend: http://ocs:9110
- endpoint: /ocs/
backend: http://frontend:9140
- type: query
endpoint: /remote.php/?preview=1
backend: http://webdav:9115
- method: REPORT
endpoint: /remote.php/dav/
backend: http://webdav:9115
- type: query
endpoint: /dav/?preview=1
backend: http://webdav:9115
- type: query
endpoint: /webdav/?preview=1
backend: http://webdav:9115
- endpoint: /remote.php/
service: com.owncloud.web.ocdav
- endpoint: /dav/
service: com.owncloud.web.ocdav
- endpoint: /webdav/
service: com.owncloud.web.ocdav
- endpoint: /status.php
service: com.owncloud.web.ocdav
- endpoint: /index.php/
service: com.owncloud.web.ocdav
- endpoint: /apps/
service: com.owncloud.web.ocdav
- endpoint: /data
backend: http://frontend:9140
- endpoint: /app/
backend: http://frontend:9140
- endpoint: /graph/
backend: http://graph:9120
- endpoint: /graph-explorer
backend: http://graph-explorer:9135
- endpoint: /api/v0/settings
backend: http://settings:9190
- endpoint: /settings.js
backend: http://settings:9190

policy_selector:
static:
policy: ocis
policies:
- name: ocis
routes:
- endpoint: "/"
backend: http://web:9100
- endpoint: "/.well-known/"
backend: http://idp:9130
- endpoint: "/konnect/"
backend: http://idp:9130
- endpoint: "/signin/"
backend: http://idp:9130
- type: regex
endpoint: "/ocs/v[12].php/cloud/(users?|groups)"
backend: http://ocs:9110
- endpoint: "/ocs/"
backend: http://storage-frontend:9140
- type: query
endpoint: "/remote.php/?preview=1"
backend: http://webdav:9115
- endpoint: "/remote.php/"
backend: http://storage-frontend:9140
- endpoint: "/dav/"
backend: http://storage-frontend:9140
- endpoint: "/webdav/"
backend: http://storage-frontend:9140
- endpoint: "/status.php"
backend: http://storage-frontend:9140
- endpoint: "/index.php/"
backend: http://storage-frontend:9140
- endpoint: "/data"
backend: http://storage-frontend:9140
- endpoint: "/app/"
backend: http://storage-frontend:9140
- endpoint: "/archiver"
backend: http://storage-frontend:9140
- endpoint: "/graph/"
backend: http://graph:9120
- endpoint: "/graph-explorer/"
backend: http://graph-explorer:9135
- endpoint: "/api/v0/accounts"
backend: http://accounts:9181
- endpoint: "/accounts.js"
backend: http://accounts:9181
- endpoint: "/api/v0/settings"
backend: http://settings:9190
- endpoint: "/settings.js"
backend: http://settings:9190
Loading