Browse Source

Publish new changes in catalog

sonicaj 2 years ago
parent
commit
9fdab912f0
28 changed files with 43 additions and 3 deletions
  1. 0 0
      charts/nextcloud/1.6.43/.helmignore
  2. 0 0
      charts/nextcloud/1.6.43/Chart.lock
  3. 1 1
      charts/nextcloud/1.6.43/Chart.yaml
  4. 0 0
      charts/nextcloud/1.6.43/README.md
  5. 0 0
      charts/nextcloud/1.6.43/app-readme.md
  6. 0 0
      charts/nextcloud/1.6.43/charts/common-2304.0.1.tgz
  7. 2 0
      charts/nextcloud/1.6.43/ci/test-values.yaml
  8. 0 0
      charts/nextcloud/1.6.43/ix_values.yaml
  9. 0 0
      charts/nextcloud/1.6.43/metadata.yaml
  10. 0 0
      charts/nextcloud/1.6.43/migrations/migrate_from_1.1.0
  11. 17 0
      charts/nextcloud/1.6.43/questions.yaml
  12. 0 0
      charts/nextcloud/1.6.43/templates/NOTES.txt
  13. 0 0
      charts/nextcloud/1.6.43/templates/_nginx.tpl
  14. 0 0
      charts/nextcloud/1.6.43/templates/_postgres.tpl
  15. 0 0
      charts/nextcloud/1.6.43/templates/backup-postgres-config.yaml
  16. 0 0
      charts/nextcloud/1.6.43/templates/backup-postgres-hook.yaml
  17. 0 0
      charts/nextcloud/1.6.43/templates/cronjob.yaml
  18. 6 2
      charts/nextcloud/1.6.43/templates/deployment.yaml
  19. 0 0
      charts/nextcloud/1.6.43/templates/nextcloud-configmap.yaml
  20. 17 0
      charts/nextcloud/1.6.43/templates/nginx-configmap.yaml
  21. 0 0
      charts/nextcloud/1.6.43/templates/nginx-secret.yaml
  22. 0 0
      charts/nextcloud/1.6.43/templates/nuke-deployments-hook.yaml
  23. 0 0
      charts/nextcloud/1.6.43/templates/postgres-deployment.yaml
  24. 0 0
      charts/nextcloud/1.6.43/templates/postgres-secret.yaml
  25. 0 0
      charts/nextcloud/1.6.43/templates/postgres-service.yaml
  26. 0 0
      charts/nextcloud/1.6.43/templates/secrets.yaml
  27. 0 0
      charts/nextcloud/1.6.43/templates/service.yaml
  28. 0 0
      charts/nextcloud/1.6.43/templates/serviceaccount.yaml

+ 0 - 0
charts/nextcloud/1.6.42/.helmignore → charts/nextcloud/1.6.43/.helmignore


+ 0 - 0
charts/nextcloud/1.6.42/Chart.lock → charts/nextcloud/1.6.43/Chart.lock


+ 1 - 1
charts/nextcloud/1.6.42/Chart.yaml → charts/nextcloud/1.6.43/Chart.yaml

@@ -4,7 +4,7 @@ description: A file sharing server that puts the control and security of your ow
 annotations:
   title: Nextcloud
 type: application
-version: 1.6.42
+version: 1.6.43
 apiVersion: v2
 appVersion: 27.0.2
 kubeVersion: '>=1.16.0-0'

+ 0 - 0
charts/nextcloud/1.6.42/README.md → charts/nextcloud/1.6.43/README.md


+ 0 - 0
charts/nextcloud/1.6.42/app-readme.md → charts/nextcloud/1.6.43/app-readme.md


+ 0 - 0
charts/nextcloud/1.6.42/charts/common-2304.0.1.tgz → charts/nextcloud/1.6.43/charts/common-2304.0.1.tgz


+ 2 - 0
charts/nextcloud/1.6.42/ci/test-values.yaml → charts/nextcloud/1.6.43/ci/test-values.yaml

@@ -12,6 +12,8 @@ environmentVariables: []
 ixChartContext: {}
 nginxConfig:
   proxy_timeouts: 120
+  useDifferentAccessPort: true
+  externalPort: 443
 nextcloud:
   datadir: /var/www/html/data
   host: nextcloud.kube.home

+ 0 - 0
charts/nextcloud/1.6.42/ix_values.yaml → charts/nextcloud/1.6.43/ix_values.yaml


+ 0 - 0
charts/nextcloud/1.6.42/metadata.yaml → charts/nextcloud/1.6.43/metadata.yaml


+ 0 - 0
charts/nextcloud/1.6.42/migrations/migrate_from_1.1.0 → charts/nextcloud/1.6.43/migrations/migrate_from_1.1.0


+ 17 - 0
charts/nextcloud/1.6.42/questions.yaml → charts/nextcloud/1.6.43/questions.yaml

@@ -86,6 +86,23 @@ questions:
             min: 30
             default: 60
             required: true
+        - variable: useDifferentAccessPort
+          label: "Use different port for URL rewrites"
+          description: |
+            If enabled, the URL rewrite will use [Access Port] defined below instead of the [Node Port].</br>
+            Note that Nextcloud will still listen on the [Node Port]. (Default 9001)
+          schema:
+            type: boolean
+            default: false
+        - variable: externalAccessPort
+          label: "External Access Port"
+          schema:
+            type: int
+            show_if: [["useDifferentAccessPort", "=", true]]
+            min: 443
+            max: 65535
+            default: 443
+            required: true
 
   - variable: nextcloud
     description: "Nextcloud configuration details"

+ 0 - 0
charts/nextcloud/1.6.42/templates/NOTES.txt → charts/nextcloud/1.6.43/templates/NOTES.txt


+ 0 - 0
charts/nextcloud/1.6.42/templates/_nginx.tpl → charts/nextcloud/1.6.43/templates/_nginx.tpl


+ 0 - 0
charts/nextcloud/1.6.42/templates/_postgres.tpl → charts/nextcloud/1.6.43/templates/_postgres.tpl


+ 0 - 0
charts/nextcloud/1.6.42/templates/backup-postgres-config.yaml → charts/nextcloud/1.6.43/templates/backup-postgres-config.yaml


+ 0 - 0
charts/nextcloud/1.6.42/templates/backup-postgres-hook.yaml → charts/nextcloud/1.6.43/templates/backup-postgres-hook.yaml


+ 0 - 0
charts/nextcloud/1.6.42/templates/cronjob.yaml → charts/nextcloud/1.6.43/templates/cronjob.yaml


+ 6 - 2
charts/nextcloud/1.6.42/templates/deployment.yaml → charts/nextcloud/1.6.43/templates/deployment.yaml

@@ -83,7 +83,11 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
         {{ if eq (include "nginx.certAvailable" .) "true" }}
         {{ $envList = mustAppend $envList (dict "name" "APACHE_DISABLE_REWRITE_IP" "value" "1") }}
           {{ if and .Values.nextcloud.host .Values.service.nodePort }}
+            {{ if .Values.nginxConfig.use443 }}
+        {{ $envList = mustAppend $envList (dict "name" "OVERWRITEHOST" "value" .Values.nextcloud.host) }}
+            {{ else }}
         {{ $envList = mustAppend $envList (dict "name" "OVERWRITEHOST" "value" (printf "%v:%v" .Values.nextcloud.host .Values.service.nodePort)) }}
+            {{ end }}
           {{ end }}
         {{ $envList = mustAppend $envList (dict "name" "OVERWRITEPROTOCOL" "value" "https") }}
         {{ $envList = mustAppend $envList (dict "name" "TRUSTED_PROXIES" "value" "127.0.0.1") }}
@@ -154,9 +158,9 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
               value: localhost
         {{ end }}
           initialDelaySeconds: 60
-          periodSeconds: 5
+          periodSeconds: 10
           timeoutSeconds: 2
-          failureThreshold: 120
+          failureThreshold: 100
           successThreshold: 1
         volumeMounts:
         - name: nextcloud-data

+ 0 - 0
charts/nextcloud/1.6.42/templates/nextcloud-configmap.yaml → charts/nextcloud/1.6.43/templates/nextcloud-configmap.yaml


+ 17 - 0
charts/nextcloud/1.6.42/templates/nginx-configmap.yaml → charts/nextcloud/1.6.43/templates/nginx-configmap.yaml

@@ -6,6 +6,11 @@ data:
   protocol: {{ include "nginx.scheme" . }}
   {{ $timeout := 60 }}
   {{ $size := .Values.nextcloud.max_upload_size | default 3 }}
+  {{ $externalAccessPort := printf ":%v" .Values.nginxConfig.externalAccessPort }}
+  {{/* If its 443, do not append it on the rewrite at all */}}
+  {{ if eq $externalAccessPort ":443" }}
+    {{ $externalAccessPort = "" }}
+  {{ end }}
   {{/* Safely access key as it is conditionaly shown */}}
   {{ if hasKey .Values "nginxConfig" }}
     {{ $timeout = .Values.nginxConfig.proxy_timeouts | default 60 }}
@@ -41,11 +46,19 @@ data:
         }
 
         location = /.well-known/carddav {
+          {{ if .Values.nginxConfig.useDifferentAccessPort }}
+          return 301 $scheme://$host{{ $externalAccessPort }}/remote.php/dav;
+          {{ else }}
           return 301 $scheme://$host:$server_port/remote.php/dav;
+          {{ end }}
         }
 
         location = /.well-known/caldav {
+          {{ if .Values.nginxConfig.useDifferentAccessPort }}
+          return 301 $scheme://$host{{ $externalAccessPort }}/remote.php/dav;
+          {{ else }}
           return 301 $scheme://$host:$server_port/remote.php/dav;
+          {{ end }}
         }
 
         location / {
@@ -62,7 +75,11 @@ data:
           proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
           proxy_set_header X-Forwarded-Proto https;
           proxy_set_header X-Forwarded-Host  $host;
+          {{ if .Values.nginxConfig.useDifferentAccessPort }}
+          proxy_set_header X-Forwarded-Port  {{ .Values.nginxConfig.externalAccessPort }};
+          {{ else }}
           proxy_set_header X-Forwarded-Port  $server_port;
+          {{ end }}
 
           # Proxy timeouts
           proxy_connect_timeout              {{ $timeout }}s;

+ 0 - 0
charts/nextcloud/1.6.42/templates/nginx-secret.yaml → charts/nextcloud/1.6.43/templates/nginx-secret.yaml


+ 0 - 0
charts/nextcloud/1.6.42/templates/nuke-deployments-hook.yaml → charts/nextcloud/1.6.43/templates/nuke-deployments-hook.yaml


+ 0 - 0
charts/nextcloud/1.6.42/templates/postgres-deployment.yaml → charts/nextcloud/1.6.43/templates/postgres-deployment.yaml


+ 0 - 0
charts/nextcloud/1.6.42/templates/postgres-secret.yaml → charts/nextcloud/1.6.43/templates/postgres-secret.yaml


+ 0 - 0
charts/nextcloud/1.6.42/templates/postgres-service.yaml → charts/nextcloud/1.6.43/templates/postgres-service.yaml


+ 0 - 0
charts/nextcloud/1.6.42/templates/secrets.yaml → charts/nextcloud/1.6.43/templates/secrets.yaml


+ 0 - 0
charts/nextcloud/1.6.42/templates/service.yaml → charts/nextcloud/1.6.43/templates/service.yaml


+ 0 - 0
charts/nextcloud/1.6.42/templates/serviceaccount.yaml → charts/nextcloud/1.6.43/templates/serviceaccount.yaml