añadido configmap
This commit is contained in:
18
configmap/nextcloud-custom-config.yaml
Normal file
18
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:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: nextcloud
|
- name: nextcloud
|
||||||
image: nextcloud:latest
|
image: nextcloud:31
|
||||||
env:
|
env:
|
||||||
- name: MYSQL_PASSWORD
|
- name: MYSQL_PASSWORD
|
||||||
value: nextcloud
|
value: nextcloud
|
||||||
@ -29,7 +29,13 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/www/html
|
- mountPath: /var/www/html
|
||||||
name: nextcloud-storage
|
name: nextcloud-storage
|
||||||
|
- mountPath: /var/www/html/config/custom.config.php
|
||||||
|
name: custom-config
|
||||||
|
subPath: custom.config.php
|
||||||
volumes:
|
volumes:
|
||||||
- name: nextcloud-storage
|
- name: nextcloud-storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: nextcloud-pvc
|
claimName: nextcloud-pvc
|
||||||
|
- name: custom-config
|
||||||
|
configMap:
|
||||||
|
name: nextcloud-custom-config
|
||||||
|
Reference in New Issue
Block a user