actualizacion domingo
This commit is contained in:
18
k8s-nextcloud/configmap/nextcloud-custom-config.yaml
Normal file
18
k8s-nextcloud/configmap/nextcloud-custom-config.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: nextcloud-custom-config
|
||||
namespace: nextcloud
|
||||
data:
|
||||
custom.config.php: |
|
||||
<?php
|
||||
$CONFIG = array (
|
||||
'trusted_proxies' => ['10.42.0.0/16'],
|
||||
'overwritehost' => 'nextcloud.manabo.org',
|
||||
'overwriteprotocol' => 'https',
|
||||
'overwrite.cli.url' => 'https://nextcloud.manabo.org',
|
||||
'forwarded_for_headers' => ['HTTP_X_FORWARDED_FOR'],
|
||||
'default_phone_region' => 'ES',
|
||||
'maintenance_window_start' => 3,
|
||||
'memcache.local' => '\\OC\\Memcache\\APCu',
|
||||
);
|
@ -14,7 +14,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: nextcloud
|
||||
image: nextcloud:27
|
||||
image: nextcloud:31
|
||||
env:
|
||||
- name: MYSQL_PASSWORD
|
||||
value: nextcloud
|
||||
@ -29,7 +29,13 @@ spec:
|
||||
volumeMounts:
|
||||
- mountPath: /var/www/html
|
||||
name: nextcloud-storage
|
||||
- mountPath: /var/www/html/config/custom.config.php
|
||||
name: custom-config
|
||||
subPath: custom.config.php
|
||||
volumes:
|
||||
- name: nextcloud-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: nextcloud-pvc
|
||||
claimName: nextcloud-pvc
|
||||
- name: custom-config
|
||||
configMap:
|
||||
name: nextcloud-custom-config
|
||||
|
@ -6,20 +6,23 @@ metadata:
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||
nginx.ingress.kubernetes.io/use-forwarded-headers: "true"
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||
nginx.ingress.kubernetes.io/x-forwarded-prefix: "/"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- hosts:
|
||||
- nextcloud.manabo.org
|
||||
secretName: nextcloud-tls
|
||||
- hosts:
|
||||
- nextcloud.manabo.org
|
||||
secretName: nextcloud-tls
|
||||
rules:
|
||||
- host: nextcloud.manabo.org
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: nextcloud
|
||||
port:
|
||||
number: 80
|
||||
- host: nextcloud.manabo.org
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: nextcloud
|
||||
port:
|
||||
number: 80
|
||||
|
@ -2,10 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- configmap/nextcloud-custom-config.yaml
|
||||
- deployments/mariadb.yaml
|
||||
- deployments/nextcloud.yaml
|
||||
- services/mariadb.yaml
|
||||
- services/nextcloud.yaml
|
||||
- pvc/mariadb-pvc.yaml
|
||||
- pvc/nextcloud-pvc.yaml
|
||||
- ingress/ingress.yaml
|
||||
- ingress/ingress.yaml
|
||||
|
Reference in New Issue
Block a user