Skip to content
Snippets Groups Projects
Commit c85237b1 authored by Mark's avatar Mark
Browse files

Merge branch '5-use-infrared-s-version-of-onlyoffice' into 'master'

Resolve "Use InfraRed's version of OnlyOffice"

Closes #5

See merge request openappstack/nextcloud!5
parents 85cc3a56 0e7592f5
No related branches found
No related tags found
1 merge request!5Resolve "Use InfraRed's version of OnlyOffice"
...@@ -2,4 +2,4 @@ apiVersion: v1 ...@@ -2,4 +2,4 @@ apiVersion: v1
description: | description: |
A helm chart for installing NextCloud and setting up ONLYOFFICE integration A helm chart for installing NextCloud and setting up ONLYOFFICE integration
name: nextcloud-onlyoffice name: nextcloud-onlyoffice
version: 0.1.3 version: 0.1.4
...@@ -5,7 +5,7 @@ dependencies: ...@@ -5,7 +5,7 @@ dependencies:
tags: tags:
- nextcloud - nextcloud
- name: onlyoffice-documentserver - name: onlyoffice-documentserver
version: 0.1.0 version: 0.1.1
repository: "@onlyoffice-documentserver" repository: "@onlyoffice-documentserver"
tags: tags:
- onlyoffice - onlyoffice
......
...@@ -19,7 +19,7 @@ data: ...@@ -19,7 +19,7 @@ data:
"editFormats": "{\"csv\":\"true\",\"odp\":\"true\",\"ods\":\"true\",\"odt\":\"true\",\"rtf\":\"false\",\"txt\":\"true\"}", "editFormats": "{\"csv\":\"true\",\"odp\":\"true\",\"ods\":\"true\",\"odt\":\"true\",\"rtf\":\"false\",\"txt\":\"true\"}",
"enabled": "yes", "enabled": "yes",
"groups": "[]", "groups": "[]",
"jwt_secret": "", "jwt_secret": "{{ $onlyoffice.jwtSecret }}",
"sameTab": "false", "sameTab": "false",
"settings_error": "", "settings_error": "",
"types": "filesystem" "types": "filesystem"
......
...@@ -33,7 +33,5 @@ mariadb: ...@@ -33,7 +33,5 @@ mariadb:
enabled: true enabled: true
onlyoffice-documentserver: onlyoffice-documentserver:
onlyoffice:
containerPort: 80
livenessProbe: livenessProbe:
initialDelaySeconds: 40 initialDelaySeconds: 40
...@@ -9,4 +9,4 @@ maintainers: ...@@ -9,4 +9,4 @@ maintainers:
name: onlyoffice-documentserver name: onlyoffice-documentserver
sources: sources:
- https://code.greenhost.net/openappstack/nextcloud - https://code.greenhost.net/openappstack/nextcloud
version: 0.1.0 version: 0.1.1
...@@ -10,10 +10,18 @@ Parameters: ...@@ -10,10 +10,18 @@ Parameters:
**NOTE:** The `onlyoffice.server_name` variable needs to be overwritten with an **NOTE:** The `onlyoffice.server_name` variable needs to be overwritten with an
URL that points to your onlyoffice for this to work correctly. URL that points to your onlyoffice for this to work correctly.
**NOTE:** It is very important that you overwrite the following password and
secrets variables manually when you run helm install:
- `jwtSecret`
- `postgresql.postgresqlPassword`
- `rabbitmq.rabbitmq.password`
| Parameter | Description | Default | | Parameter | Description | Default |
| ------------------------------------------------- | ------------------------------------------------------------- | ----------------------------------------------------------- | | ------------------------------------------------- | ------------------------------------------------------------- | ----------------------------------------------------------- |
| `replicaCount` | Number of provisioner instances to deployed | `1` | | `replicaCount` | Number of provisioner instances to deployed | `1` |
| `strategy` | Specifies the strategy used to replace old Pods by new ones | `Recreate` | | `strategy` | Specifies the strategy used to replace old Pods by new ones | `Recreate` |
| `jwtSecret` | Used to set the JWT shared secret between ONLYOFFICE and NC | `secret` |
| `image.repository` | Provisioner image | `onlyoffice/documentserver` | | `image.repository` | Provisioner image | `onlyoffice/documentserver` |
| `image.tag` | Version of provisioner image | `5.3.1.26` | | `image.tag` | Version of provisioner image | `5.3.1.26` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` |
......
dependencies:
- name: rabbitmq
version: 6.1.2
repository: "@stable"
tags:
- onlyoffice
- rabbitmq
- queue
- name: redis
version: 8.0.18
repository: "@stable"
tags:
- key-value-store
- redis
- onlyoffice
- name: postgresql
version: 5.3.10
repository: "@stable"
tags:
- postgresql
- onlyoffice
- database
...@@ -29,7 +29,7 @@ spec: ...@@ -29,7 +29,7 @@ spec:
livenessProbe: livenessProbe:
failureThreshold: 3 failureThreshold: 3
httpGet: httpGet:
path: / path: /welcome
port: http port: http
scheme: HTTP scheme: HTTP
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
...@@ -39,6 +39,41 @@ spec: ...@@ -39,6 +39,41 @@ spec:
failureThreshold: {{ .Values.livenessProbe.failureThreshold }} failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
{{- end }} {{- end }}
{{- if .Values.readinessProbe.enabled }} {{- if .Values.readinessProbe.enabled }}
livenessProbe:
failureThreshold: 3
httpGet:
path: /welcome
port: http
scheme: HTTP
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
{{- end }}
env:
- name: RABBITMQ_SERVER_URL
value: "amqp://user:{{ .Values.rabbitmq.rabbitmq.password }}@{{ .Release.Name }}-rabbitmq"
- name: JWT_SECRET
value: "{{ .Values.jwtSecret }}"
- name: POSTGRESQL_SERVER_USER
value: "onlyoffice"
- name: REDIS_SERVER_HOST
value: "{{ .Release.Name }}-redis-master"
- name: POSTGRESQL_SERVER_PASS
valueFrom:
secretKeyRef:
name: "{{ .Release.Name }}-postgresql"
key: "postgresql-password"
- name: REDIS_SERVER_PORT
value: "{{ .Values.redis.master.service.port }}"
- name: POSTGRESQL_SERVER_HOST
value: "{{ .Release.Name }}-postgresql"
- name: POSTGRESQL_SERVER_PORT
value: "{{ .Values.postgresql.service.port }}"
- name: POSTGRESQL_SERVER_DB_NAME
value: "{{ .Values.postgresql.postgresqlDatabase }}"
{{- if .Values.readinessProbe.enabled }}
readinessProbe: readinessProbe:
failureThreshold: 3 failureThreshold: 3
httpGet: httpGet:
......
...@@ -4,10 +4,12 @@ ...@@ -4,10 +4,12 @@
replicaCount: 1 replicaCount: 1
jwtSecret: "secret"
image: image:
repository: onlyoffice/documentserver repository: infrarednetwork/onlyoffice-documentserver
tag: 5.3.1.26 tag: 5.3.2-2
pullPolicy: IfNotPresent pullPolicy: Always
strategy: Recreate strategy: Recreate
...@@ -27,7 +29,7 @@ ingress: ...@@ -27,7 +29,7 @@ ingress:
onlyoffice: onlyoffice:
# port that server onlyoffice in container # port that server onlyoffice in container
containerPort: 80 containerPort: 8000
# URL to the server running onlyoffice, replace this with your own domain! # URL to the server running onlyoffice, replace this with your own domain!
server_name: onlyoffice.domain server_name: onlyoffice.domain
...@@ -62,3 +64,22 @@ readinessProbe: ...@@ -62,3 +64,22 @@ readinessProbe:
periodSeconds: 10 periodSeconds: 10
successThreshold: 1 successThreshold: 1
failureThreshold: 3 failureThreshold: 3
redis:
master:
command: "redis-server --appendonly yes"
usePassword: false
cluster:
enabled: false
postgresql:
persistence:
# persistent storage is handled by NextCloud in our case
enabled: false
postgresqlDatabase: onlyoffice
postgresqlUsername: onlyoffice
postgresqlPassword: onlyoffice
rabbitmq:
rabbitmq:
password: password
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment