slight tweaking for using https behind traefik on Nextcloud

This commit is contained in:
kjeld Schouten-Lebbing 2021-07-03 11:52:03 +02:00
parent 8138af9b19
commit 4889d80c34
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
6 changed files with 14 additions and 3 deletions

View File

@ -35,4 +35,4 @@ sources:
- https://github.com/nextcloud/docker - https://github.com/nextcloud/docker
- https://github.com/nextcloud/helm - https://github.com/nextcloud/helm
type: application type: application
version: 1.0.12 version: 1.0.13

View File

@ -118,6 +118,13 @@ questions:
type: string type: string
required: true required: true
default: "" default: ""
- variable: TRUSTED_PROXIES
label: "TRUSTED_PROXIES"
description: "Sets nextcloud Trusted Proxies"
schema:
type: string
default: "172.16.0.0/16"
# Configure Enviroment Variables # Configure Enviroment Variables
- variable: envList - variable: envList

View File

@ -18,5 +18,8 @@ metadata:
name: nextcloudconfig name: nextcloudconfig
data: data:
NEXTCLOUD_TRUSTED_DOMAINS: {{ $hosts | quote }} NEXTCLOUD_TRUSTED_DOMAINS: {{ $hosts | quote }}
{{- if .Values.Ingress.main.enabled }}
APACHE_DISABLE_REWRITE_IP: 1
{{- end }}
{{- end -}} {{- end -}}

View File

@ -17,6 +17,7 @@ service:
env: env:
NEXTCLOUD_ADMIN_USER: "admin" NEXTCLOUD_ADMIN_USER: "admin"
NEXTCLOUD_ADMIN_PASSWORD: "adminpass" NEXTCLOUD_ADMIN_PASSWORD: "adminpass"
TRUSTED_PROXIES: "172.16.0.0/16"
envTpl: envTpl:
POSTGRES_DB: "{{ .Values.postgresql.postgresqlDatabase }}" POSTGRES_DB: "{{ .Values.postgresql.postgresqlDatabase }}"

View File

@ -26,4 +26,4 @@ sources:
- https://traefik.io/ - https://traefik.io/
type: application type: application
upstream_version: v9.19.2 upstream_version: v9.19.2
version: 6.3.17 version: 6.3.18

View File

@ -31,7 +31,7 @@ spec:
- HEAD - HEAD
- PUT - PUT
accessControlMaxAge: 100 accessControlMaxAge: 100
# sslRedirect: true sslRedirect: true
# stsSeconds: 63072000 # stsSeconds: 63072000
# stsIncludeSubdomains: false # stsIncludeSubdomains: false
# stsPreload: false # stsPreload: false