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:
|
||||
containers:
|
||||
- name: nextcloud
|
||||
image: nextcloud:latest
|
||||
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
|
||||
- name: custom-config
|
||||
configMap:
|
||||
name: nextcloud-custom-config
|
||||
|
Reference in New Issue
Block a user