diff --git a/nextcloud-onlyoffice/Chart.yaml b/nextcloud-onlyoffice/Chart.yaml index a2517259d5952b4f0dbeca88452b82e6514f58da..16f5023d452781ef4e024a076db0a06989597764 100644 --- a/nextcloud-onlyoffice/Chart.yaml +++ b/nextcloud-onlyoffice/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v1 description: | A helm chart for installing NextCloud and setting up ONLYOFFICE integration name: nextcloud-onlyoffice -version: 0.1.3 +version: 0.1.4 diff --git a/nextcloud-onlyoffice/requirements.yaml b/nextcloud-onlyoffice/requirements.yaml index 7995fa33bb279a46fc60ddee4f3b7328f8218c9a..23f7ca8752074f20ee6252c30e4d940367276388 100644 --- a/nextcloud-onlyoffice/requirements.yaml +++ b/nextcloud-onlyoffice/requirements.yaml @@ -5,7 +5,7 @@ dependencies: tags: - nextcloud - name: onlyoffice-documentserver - version: 0.1.0 + version: 0.1.1 repository: "@onlyoffice-documentserver" tags: - onlyoffice diff --git a/nextcloud-onlyoffice/templates/onlyoffice-config.yaml b/nextcloud-onlyoffice/templates/onlyoffice-config.yaml index 41660996b886ca1b9486774c84d9bd4a3309dbb9..190d3007443847b14e4ecb1b5a4031f21171c503 100644 --- a/nextcloud-onlyoffice/templates/onlyoffice-config.yaml +++ b/nextcloud-onlyoffice/templates/onlyoffice-config.yaml @@ -19,7 +19,7 @@ data: "editFormats": "{\"csv\":\"true\",\"odp\":\"true\",\"ods\":\"true\",\"odt\":\"true\",\"rtf\":\"false\",\"txt\":\"true\"}", "enabled": "yes", "groups": "[]", - "jwt_secret": "", + "jwt_secret": "{{ $onlyoffice.jwtSecret }}", "sameTab": "false", "settings_error": "", "types": "filesystem" diff --git a/nextcloud-onlyoffice/values.yaml b/nextcloud-onlyoffice/values.yaml index 17ac94fe2de31a3ced46b7ef67a17bba1dbbc0a5..9baceaf8084570b812c0fea4c9762e92daa66f9a 100644 --- a/nextcloud-onlyoffice/values.yaml +++ b/nextcloud-onlyoffice/values.yaml @@ -33,7 +33,5 @@ mariadb: enabled: true onlyoffice-documentserver: - onlyoffice: - containerPort: 80 livenessProbe: initialDelaySeconds: 40 diff --git a/onlyoffice-documentserver/Chart.yaml b/onlyoffice-documentserver/Chart.yaml index 622f58c422f2c8b7d312770c2d151b3268cdccbb..ff99949822206707c6256647b92283b8e164fa05 100644 --- a/onlyoffice-documentserver/Chart.yaml +++ b/onlyoffice-documentserver/Chart.yaml @@ -9,4 +9,4 @@ maintainers: name: onlyoffice-documentserver sources: - https://code.greenhost.net/openappstack/nextcloud -version: 0.1.0 +version: 0.1.1 diff --git a/onlyoffice-documentserver/README.md b/onlyoffice-documentserver/README.md index 04cfd80ec46d9d9ff1d28edd5048cf629337c0cc..9ae66f1f859dfba5cb3d5fa466a39c3aae9ec9ba 100644 --- a/onlyoffice-documentserver/README.md +++ b/onlyoffice-documentserver/README.md @@ -10,10 +10,18 @@ Parameters: **NOTE:** The `onlyoffice.server_name` variable needs to be overwritten with an 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 | | ------------------------------------------------- | ------------------------------------------------------------- | ----------------------------------------------------------- | | `replicaCount` | Number of provisioner instances to deployed | `1` | | `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.tag` | Version of provisioner image | `5.3.1.26` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | diff --git a/onlyoffice-documentserver/requirements.yaml b/onlyoffice-documentserver/requirements.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8d200ec7948f2097a92597d0fed692ae59849b13 --- /dev/null +++ b/onlyoffice-documentserver/requirements.yaml @@ -0,0 +1,22 @@ +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 diff --git a/onlyoffice-documentserver/templates/deployment.yaml b/onlyoffice-documentserver/templates/deployment.yaml index 14def3e8dc8d12dc9527d158f9d4ee20b9bd4e25..2ebb2d40679a536003c814677da2c1f8cd2041cf 100644 --- a/onlyoffice-documentserver/templates/deployment.yaml +++ b/onlyoffice-documentserver/templates/deployment.yaml @@ -29,7 +29,7 @@ spec: livenessProbe: failureThreshold: 3 httpGet: - path: / + path: /welcome port: http scheme: HTTP initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} @@ -39,6 +39,41 @@ spec: failureThreshold: {{ .Values.livenessProbe.failureThreshold }} {{- end }} {{- 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: failureThreshold: 3 httpGet: diff --git a/onlyoffice-documentserver/values.yaml b/onlyoffice-documentserver/values.yaml index 844fd28ef2822ec21d95e6f773bc3c397bbd8f86..9f24a1710dd748539b160ead17c63d5ea8e878d7 100644 --- a/onlyoffice-documentserver/values.yaml +++ b/onlyoffice-documentserver/values.yaml @@ -4,10 +4,12 @@ replicaCount: 1 +jwtSecret: "secret" + image: - repository: onlyoffice/documentserver - tag: 5.3.1.26 - pullPolicy: IfNotPresent + repository: infrarednetwork/onlyoffice-documentserver + tag: 5.3.2-2 + pullPolicy: Always strategy: Recreate @@ -27,7 +29,7 @@ ingress: onlyoffice: # port that server onlyoffice in container - containerPort: 80 + containerPort: 8000 # URL to the server running onlyoffice, replace this with your own domain! server_name: onlyoffice.domain @@ -62,3 +64,22 @@ readinessProbe: periodSeconds: 10 successThreshold: 1 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