chore(nextcloud): set overwrite.cli.url (#3541)

Co-authored-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
Stavros Kois
2022-08-24 18:11:49 +03:00
committed by GitHub
parent 987c2834c6
commit d764319fad
2 changed files with 10 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ sources:
- https://github.com/nextcloud/docker
- https://github.com/nextcloud/helm
type: application
version: 15.2.42
version: 15.2.43
annotations:
truecharts.org/catagories: |
- cloud

View File

@@ -108,6 +108,15 @@ command:
{{ if .Values.imaginary.preview_font }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\Font'{{ $c = add1 $c }}{{ end }}
{{- end }}
# Set overwrite.cli.uri
{{- $url := ( printf "http://%s/" ( .Values.env.AccessIP | default ( printf "%v-%v" .Release.Name "nextcloud" ) ) ) }}
{{- if .Values.ingress.main.enabled }}
{{- with (first .Values.ingress.main.hosts) }}
{{- $url = ( printf "https://%s/" .host ) }}
{{- end }}
{{- end }}
php /var/www/html/occ config:system:set overwrite.cli.url --value='{{ $url }}'
until $(curl --output /dev/null --silent --head --fail -H "Host: test.fakedomain.dns" http://127.0.0.1:7867/push/test/cookie); do
echo "High Performance Backend not running ... waiting..."
sleep 10