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
|
||||
COPY config.php /usr/src/nextcloud/config/
|
||||
#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/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
|
||||
//
|
||||
//Manually deployed by yourself
|
||||
// Manually deployed by yourself
|
||||
//
|
||||
$CONFIG = array (
|
||||
'htaccess.RewriteBase' => '/',
|
||||
'memcache.local' => '\\OC\\Memcache\\APCu',
|
||||
'apps_paths' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'path' => '/var/www/html/apps',
|
||||
'url' => '/apps',
|
||||
'writable' => false,
|
||||
$CONFIG = array(
|
||||
'htaccess.RewriteBase' => '/',
|
||||
'memcache.local' => '\\OC\\Memcache\\APCu',
|
||||
'apps_paths' => array(
|
||||
0 => array(
|
||||
'path' => '/var/www/html/apps',
|
||||
'url' => '/apps',
|
||||
'writable' => false
|
||||
),
|
||||
1 => array(
|
||||
'path' => '/var/www/html/custom_apps',
|
||||
'url' => '/custom_apps',
|
||||
'writable' => true
|
||||
)
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'path' => '/var/www/html/custom_apps',
|
||||
'url' => '/custom_apps',
|
||||
'writable' => true,
|
||||
'objectstore' => array(
|
||||
'class' => '\\OC\\Files\\ObjectStore\\S3',
|
||||
'arguments' => 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
|
||||
)
|
||||
),
|
||||
),
|
||||
'objectstore' =>
|
||||
array (
|
||||
'class' => '\\OC\\Files\\ObjectStore\\S3',
|
||||
'arguments' =>
|
||||
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,
|
||||
'instanceid' => 'ocsxqijfvpf7',
|
||||
'passwordsalt' => 'OTjmXJP0VKlw+OLja6wUxbHlZk4Txw',
|
||||
'secret' => '0g94SdF7A2k/LHTKUM+8HwEDFgF1zz7I/sMauap02/d8G677',
|
||||
'trusted_domains' => array(
|
||||
0 => 'nc.lan'
|
||||
),
|
||||
),
|
||||
'instanceid' => 'ocsxqijfvpf7',
|
||||
'passwordsalt' => 'OTjmXJP0VKlw+OLja6wUxbHlZk4Txw',
|
||||
'secret' => '0g94SdF7A2k/LHTKUM+8HwEDFgF1zz7I/sMauap02/d8G677',
|
||||
'trusted_domains' =>
|
||||
array (
|
||||
0 => 'nc.lan',
|
||||
),
|
||||
'datadirectory' => '/var/www/html/data',
|
||||
'dbtype' => 'pgsql',
|
||||
'version' => '20.0.9.1',
|
||||
'overwrite.cli.url' => 'http://nc.lan',
|
||||
'dbname' => 'nextcloud',
|
||||
'dbhost' => 'postgres.live-env.svc.cluster.local:5432',
|
||||
'dbport' => '',
|
||||
'dbtableprefix' => 'oc_',
|
||||
'dbuser' => 'nextcloud',
|
||||
'dbpassword' => 'Vb7yHzmE5HIjfU4hf89aXAmEEmxAnMdB',
|
||||
'installed' => true,
|
||||
'datadirectory' => '/var/www/html/data',
|
||||
'dbtype' => 'pgsql',
|
||||
'version' => '20.0.9.1',
|
||||
'overwrite.cli.url' => 'http://nc.lan',
|
||||
'dbname' => 'nextcloud',
|
||||
'dbhost' => 'postgres.live-env.svc.cluster.local:5432',
|
||||
'dbport' => '',
|
||||
'dbtableprefix' => 'oc_',
|
||||
'dbuser' => 'nextcloud',
|
||||
'dbpassword' => 'Vb7yHzmE5HIjfU4hf89aXAmEEmxAnMdB',
|
||||
'installed' => true,
|
||||
'default_phone_region' => 'DE'
|
||||
);
|
||||
@@ -25,6 +25,9 @@ spec:
|
||||
- name: nextcloud-nginx-site
|
||||
configMap:
|
||||
name: nextcloud-nginx-site
|
||||
- name: nextcloud-config
|
||||
configMap:
|
||||
name: nextcloud-config
|
||||
- name: www-data
|
||||
emptyDir: {}
|
||||
containers:
|
||||
@@ -49,6 +52,9 @@ spec:
|
||||
volumeMounts:
|
||||
- name: www-data
|
||||
mountPath: /var/www/html
|
||||
- name: nextcloud-config
|
||||
mountPath: /var/www/html/config/config.php
|
||||
subPath: config.php
|
||||
env:
|
||||
- name: TZ
|
||||
value: "Europe/Berlin"
|
||||
|
||||
Reference in New Issue
Block a user