añadido configmap

This commit is contained in:
2025-05-04 09:06:23 +00:00
parent d85a908560
commit d7f4bae374
2 changed files with 25 additions and 1 deletions

View 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',
);

View File

@ -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