Nextcloud trusted domains fix
This commit is contained in:
@@ -226,6 +226,12 @@ data:
|
||||
$CONFIG = array (
|
||||
'upgrade.disable-web' => true,
|
||||
);
|
||||
trusted-domains.config.php: |-
|
||||
<?php
|
||||
$trustedDomains = getenv('NEXTCLOUD_TRUSTED_DOMAINS');
|
||||
if ($trustedDomains) {
|
||||
$CONFIG['trusted_domains'] = array_values(array_filter(array_map('trim', explode(' ', $trustedDomains))));
|
||||
}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
@@ -437,6 +443,8 @@ spec:
|
||||
key: nextcloud-password
|
||||
- name: NEXTCLOUD_TRUSTED_DOMAINS
|
||||
value: "nextcloud.home nextcloud.dooplex.hu localhost"
|
||||
- name: OVERWRITECLIURL
|
||||
value: "https://nextcloud.dooplex.hu"
|
||||
- name: NEXTCLOUD_DATA_DIR
|
||||
value: "/data"
|
||||
resources:
|
||||
@@ -487,6 +495,9 @@ spec:
|
||||
- name: nextcloud-config
|
||||
mountPath: /var/www/html/config/upgrade-disable-web.config.php
|
||||
subPath: upgrade-disable-web.config.php
|
||||
- name: nextcloud-config
|
||||
mountPath: /var/www/html/config/trusted-domains.config.php
|
||||
subPath: trusted-domains.config.php
|
||||
- mountPath: /data
|
||||
name: data
|
||||
- name: nextcloud-phpconfig
|
||||
|
||||
Reference in New Issue
Block a user