Skip to content

Commit

Permalink
Config rehaul for apps
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Apr 17, 2023
1 parent 0b97a07 commit 19d3eff
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 11 deletions.
13 changes: 11 additions & 2 deletions iop/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dependencies:
version: "1.4.2"
repository: "https://cs3org.github.io/charts"
alias: gateway
condition: gateway.enabled
- name: revad
version: "1.4.2"
repository: "https://cs3org.github.io/charts"
Expand All @@ -28,8 +27,18 @@ dependencies:
repository: "https://cs3org.github.io/charts"
alias: storageprovider-public
condition: storageprovider-public.enabled
- name: revad
version: "1.4.2"
repository: "https://cs3org.github.io/charts"
alias: appprovider-collabora
condition: appprovider-collabora.enabled
- name: revad
version: "1.4.2"
repository: "https://cs3org.github.io/charts"
alias: appprovider-codimd
condition: appprovider-codimd.enabled
- name: wopiserver
version: "0.5.2"
version: "0.9.0"
repository: "https://cs3org.github.io/charts"
condition: wopiserver.enabled
maintainers:
Expand Down
5 changes: 4 additions & 1 deletion iop/ci/complete-iop-values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
gateway:
enabled: true
configFiles:
revad.toml: |
[grpc.services.gateway]
Expand Down Expand Up @@ -108,3 +107,7 @@ storageprovider-public:
wopiserver:
enabled: true
config:
codimd:
enabled: true
inturl: http://meshapps-codimd
11 changes: 11 additions & 0 deletions iop/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{/*
Configure the wopiserver if apps are enabled
*/}}
{{ if or (index .Values "appprovider-codimd").enabled (index .Values "appprovider-collabora").enabled }}
wopiserver:
enabled: true
config:
codimd:
enabled: {{ (index .Values "appprovider-codimd").enabled }}
inturl: http://meshapps-codimd
{{ end }}
12 changes: 8 additions & 4 deletions iop/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
gateway:
enabled: true

storageprovider-home:
enabled: false

Expand All @@ -10,5 +7,12 @@ storageprovider-reva:
storageprovider-public:
enabled: false

wopiserver:
# TODO not yet used
shareprovider-ocm:
enabled: false

appprovider-collabora:
enabled: false

appprovider-codimd:
enabled: false
4 changes: 2 additions & 2 deletions meshapps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Colletion of apps supported by/compatible with the IOP and its adaptors.

- **Integration reference:** https://developer.sciencemesh.io/docs/technical-documentation/integrations/codimd
- **Requirements:**
- `iop.wopiserver.enabled=true` and `iop.wopiserver.wopibridge.enabled=true`
- `iop` chart version >= `0.1.1` (`wopiserver` chart >= `0.2.0`)
- `iop.wopiserver.enabled=true`
- `iop` chart version >= `0.1.1` (`wopiserver` chart >= `0.9.0`)
13 changes: 11 additions & 2 deletions meshapps/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
collabora-code:
collabora:
enabled: false
image:
tag: latest
Expand All @@ -20,9 +20,18 @@ codimd:
CMD_ALLOW_ANONYMOUS: true
CMD_ALLOW_ANONYMOUS_EDITS: true
CMD_ALLOW_ANONYMOUS_VIEWS: true
CMD_ALLOW_FREEURL: true
CMD_EMAIL: false
CMD_ALLOW_EMAIL_REGISTER: false
CMD_ALLOW_GRAVATAR: true
CMD_ALLOW_PDF_EXPORT: true
QT_QPA_PLATFORM:
NODE_TLS_REJECT_UNAUTHORIZED: 0
CMD_API_BODY_LIMIT: 210000
#CMD_DOMAIN: https://{{ .Values.ingress.hostname }}
#CMD_URL_ADDPORT: true
CMD_URL_PATH: codimd
CMD_APPLIANCE_MODE: true
CMD_EMAIL: false
versionCheck: false
imageStorePersistentVolume:
enabled: false
Expand Down

0 comments on commit 19d3eff

Please sign in to comment.