nextcloud config from configmap
This commit is contained in:
@@ -15,7 +15,7 @@ RUN apt-get clean -y && \
|
|||||||
RUN touch /usr/src/nextcloud/data/.ocdata
|
RUN touch /usr/src/nextcloud/data/.ocdata
|
||||||
COPY config.php /usr/src/nextcloud/config/
|
COPY config.php /usr/src/nextcloud/config/
|
||||||
#COPY htaccess-data /usr/src/nextcloud/data/.htaccess
|
#COPY htaccess-data /usr/src/nextcloud/data/.htaccess
|
||||||
COPY apache-default-vhost.conf /etc/apache2/sites-available/000-default.conf
|
#COPY apache-default-vhost.conf /etc/apache2/sites-available/000-default.conf
|
||||||
RUN mv /usr/src/nextcloud/.htaccess /usr/src/nextcloud/.htaccess.bak
|
RUN mv /usr/src/nextcloud/.htaccess /usr/src/nextcloud/.htaccess.bak
|
||||||
RUN mv /usr/src/nextcloud/config/.htaccess /usr/src/nextcloud/config/.htaccess.bak
|
RUN mv /usr/src/nextcloud/config/.htaccess /usr/src/nextcloud/config/.htaccess.bak
|
||||||
|
|
||||||
|
|||||||
2
apps/nextcloud/README.md
Normal file
2
apps/nextcloud/README.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# kubectl -n live-env create configmap nextcloud-config --from-file=config.php
|
||||||
|
# kubectl -n live-env create configmap nextcloud-nginx-site --from-file=nginx-site.configmap.conf
|
||||||
@@ -1,59 +1,54 @@
|
|||||||
<?php
|
<?php
|
||||||
//
|
//
|
||||||
//Manually deployed by yourself
|
// Manually deployed by yourself
|
||||||
//
|
//
|
||||||
$CONFIG = array (
|
$CONFIG = array(
|
||||||
'htaccess.RewriteBase' => '/',
|
'htaccess.RewriteBase' => '/',
|
||||||
'memcache.local' => '\\OC\\Memcache\\APCu',
|
'memcache.local' => '\\OC\\Memcache\\APCu',
|
||||||
'apps_paths' =>
|
'apps_paths' => array(
|
||||||
array (
|
0 => array(
|
||||||
0 =>
|
'path' => '/var/www/html/apps',
|
||||||
array (
|
'url' => '/apps',
|
||||||
'path' => '/var/www/html/apps',
|
'writable' => false
|
||||||
'url' => '/apps',
|
),
|
||||||
'writable' => false,
|
1 => array(
|
||||||
|
'path' => '/var/www/html/custom_apps',
|
||||||
|
'url' => '/custom_apps',
|
||||||
|
'writable' => true
|
||||||
|
)
|
||||||
),
|
),
|
||||||
1 =>
|
'objectstore' => array(
|
||||||
array (
|
'class' => '\\OC\\Files\\ObjectStore\\S3',
|
||||||
'path' => '/var/www/html/custom_apps',
|
'arguments' => array(
|
||||||
'url' => '/custom_apps',
|
'bucket' => 'nextcloud',
|
||||||
'writable' => true,
|
'key' => 'nextcloud',
|
||||||
|
'secret' => 'tWnc3zdxcDUvcX5f9uY7RRYvKLcWI1KY',
|
||||||
|
'region' => '',
|
||||||
|
'hostname' => 'minio.live-infra.svc.cluster.local',
|
||||||
|
'port' => '443',
|
||||||
|
'objectPrefix' => 'urn:oid:',
|
||||||
|
'autocreate' => false,
|
||||||
|
'use_ssl' => true,
|
||||||
|
'use_path_style' => true,
|
||||||
|
'legacy_auth' => false
|
||||||
|
)
|
||||||
),
|
),
|
||||||
),
|
'instanceid' => 'ocsxqijfvpf7',
|
||||||
'objectstore' =>
|
'passwordsalt' => 'OTjmXJP0VKlw+OLja6wUxbHlZk4Txw',
|
||||||
array (
|
'secret' => '0g94SdF7A2k/LHTKUM+8HwEDFgF1zz7I/sMauap02/d8G677',
|
||||||
'class' => '\\OC\\Files\\ObjectStore\\S3',
|
'trusted_domains' => array(
|
||||||
'arguments' =>
|
0 => 'nc.lan'
|
||||||
array (
|
|
||||||
'bucket' => 'nextcloud',
|
|
||||||
'key' => 'nextcloud',
|
|
||||||
'secret' => 'tWnc3zdxcDUvcX5f9uY7RRYvKLcWI1KY',
|
|
||||||
'region' => '',
|
|
||||||
'hostname' => 'minio.live-infra.svc.cluster.local',
|
|
||||||
'port' => '443',
|
|
||||||
'objectPrefix' => 'urn:oid:',
|
|
||||||
'autocreate' => false,
|
|
||||||
'use_ssl' => true,
|
|
||||||
'use_path_style' => true,
|
|
||||||
'legacy_auth' => false,
|
|
||||||
),
|
),
|
||||||
),
|
'datadirectory' => '/var/www/html/data',
|
||||||
'instanceid' => 'ocsxqijfvpf7',
|
'dbtype' => 'pgsql',
|
||||||
'passwordsalt' => 'OTjmXJP0VKlw+OLja6wUxbHlZk4Txw',
|
'version' => '20.0.9.1',
|
||||||
'secret' => '0g94SdF7A2k/LHTKUM+8HwEDFgF1zz7I/sMauap02/d8G677',
|
'overwrite.cli.url' => 'http://nc.lan',
|
||||||
'trusted_domains' =>
|
'dbname' => 'nextcloud',
|
||||||
array (
|
'dbhost' => 'postgres.live-env.svc.cluster.local:5432',
|
||||||
0 => 'nc.lan',
|
'dbport' => '',
|
||||||
),
|
'dbtableprefix' => 'oc_',
|
||||||
'datadirectory' => '/var/www/html/data',
|
'dbuser' => 'nextcloud',
|
||||||
'dbtype' => 'pgsql',
|
'dbpassword' => 'Vb7yHzmE5HIjfU4hf89aXAmEEmxAnMdB',
|
||||||
'version' => '20.0.9.1',
|
'installed' => true,
|
||||||
'overwrite.cli.url' => 'http://nc.lan',
|
'default_phone_region' => 'DE'
|
||||||
'dbname' => 'nextcloud',
|
|
||||||
'dbhost' => 'postgres.live-env.svc.cluster.local:5432',
|
|
||||||
'dbport' => '',
|
|
||||||
'dbtableprefix' => 'oc_',
|
|
||||||
'dbuser' => 'nextcloud',
|
|
||||||
'dbpassword' => 'Vb7yHzmE5HIjfU4hf89aXAmEEmxAnMdB',
|
|
||||||
'installed' => true,
|
|
||||||
);
|
);
|
||||||
@@ -25,6 +25,9 @@ spec:
|
|||||||
- name: nextcloud-nginx-site
|
- name: nextcloud-nginx-site
|
||||||
configMap:
|
configMap:
|
||||||
name: nextcloud-nginx-site
|
name: nextcloud-nginx-site
|
||||||
|
- name: nextcloud-config
|
||||||
|
configMap:
|
||||||
|
name: nextcloud-config
|
||||||
- name: www-data
|
- name: www-data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
containers:
|
containers:
|
||||||
@@ -49,6 +52,9 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: www-data
|
- name: www-data
|
||||||
mountPath: /var/www/html
|
mountPath: /var/www/html
|
||||||
|
- name: nextcloud-config
|
||||||
|
mountPath: /var/www/html/config/config.php
|
||||||
|
subPath: config.php
|
||||||
env:
|
env:
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Europe/Berlin"
|
value: "Europe/Berlin"
|
||||||
|
|||||||
Reference in New Issue
Block a user