fix: add TRUSTED_PROXIES for reverse proxy headers and cron job for background tasks
This commit is contained in:
parent
dbfc806bce
commit
12fcf7b62b
3 changed files with 30 additions and 0 deletions
|
|
@ -11,3 +11,4 @@ resources:
|
||||||
- nextcloud-deployment.yaml
|
- nextcloud-deployment.yaml
|
||||||
- nextcloud-service.yaml
|
- nextcloud-service.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
|
- nextcloud-cronjob.yaml
|
||||||
|
|
|
||||||
27
deployment/nextcloud-cronjob.yaml
Normal file
27
deployment/nextcloud-cronjob.yaml
Normal 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
|
||||||
|
|
@ -30,6 +30,8 @@ spec:
|
||||||
value: mariadb-nextcloud
|
value: mariadb-nextcloud
|
||||||
- name: OVERWRITEPROTOCOL
|
- name: OVERWRITEPROTOCOL
|
||||||
value: https
|
value: https
|
||||||
|
- name: TRUSTED_PROXIES
|
||||||
|
value: "10.244.0.0/16"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue