Nextcloud trusted domains fix
This commit is contained in:
@@ -226,6 +226,12 @@ data:
|
|||||||
$CONFIG = array (
|
$CONFIG = array (
|
||||||
'upgrade.disable-web' => true,
|
'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
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@@ -437,6 +443,8 @@ spec:
|
|||||||
key: nextcloud-password
|
key: nextcloud-password
|
||||||
- name: NEXTCLOUD_TRUSTED_DOMAINS
|
- name: NEXTCLOUD_TRUSTED_DOMAINS
|
||||||
value: "nextcloud.home nextcloud.dooplex.hu localhost"
|
value: "nextcloud.home nextcloud.dooplex.hu localhost"
|
||||||
|
- name: OVERWRITECLIURL
|
||||||
|
value: "https://nextcloud.dooplex.hu"
|
||||||
- name: NEXTCLOUD_DATA_DIR
|
- name: NEXTCLOUD_DATA_DIR
|
||||||
value: "/data"
|
value: "/data"
|
||||||
resources:
|
resources:
|
||||||
@@ -487,6 +495,9 @@ spec:
|
|||||||
- name: nextcloud-config
|
- name: nextcloud-config
|
||||||
mountPath: /var/www/html/config/upgrade-disable-web.config.php
|
mountPath: /var/www/html/config/upgrade-disable-web.config.php
|
||||||
subPath: 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
|
- mountPath: /data
|
||||||
name: data
|
name: data
|
||||||
- name: nextcloud-phpconfig
|
- name: nextcloud-phpconfig
|
||||||
|
|||||||
Reference in New Issue
Block a user