fix: add TRUSTED_PROXIES for reverse proxy headers and cron job for background tasks

This commit is contained in:
Szymon Wałachowski 2026-04-01 23:57:24 +02:00
parent dbfc806bce
commit 12fcf7b62b
3 changed files with 30 additions and 0 deletions

View file

@ -11,3 +11,4 @@ resources:
- nextcloud-deployment.yaml
- nextcloud-service.yaml
- ingress.yaml
- nextcloud-cronjob.yaml

View file

@ -0,0 +1,27 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: nextcloud-cron
namespace: nextcloud
spec:
schedule: "*/5 * * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: nextcloud-cron
image: nextcloud:33
command:
- php
- -f
- /var/www/html/cron.php
volumeMounts:
- name: nextcloud-data
mountPath: /var/www/html
volumes:
- name: nextcloud-data
persistentVolumeClaim:
claimName: nextcloud-pvc

View file

@ -30,6 +30,8 @@ spec:
value: mariadb-nextcloud
- name: OVERWRITEPROTOCOL
value: https
- name: TRUSTED_PROXIES
value: "10.244.0.0/16"
ports:
- containerPort: 80
volumeMounts: