nextcloud: externelize config

This commit is contained in:
Schneider Roland 2024-11-01 21:35:58 +01:00
parent 3ffb291e2a
commit 84065df51b
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,41 @@
<?php
$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,
),
),
'upgrade.disable-web' => true,
'instanceid' => 'oct33spivb8j',
'passwordsalt' => 'ZVrw83bYSVbcbGgczrEzKA1TybqGq3',
'secret' => 'PpPzzld91HkzSOmc010a/QZvPxH/pR5tOPLxNPmaJUl6gkno',
'trusted_domains' =>
array (
0 => 'nextcloud.rschneider.net',
1 => 'nextcloud.rschneider.hu',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '30.0.0.14',
'overwrite.cli.url' => 'https://nextcloud.rschneider.net',
'dbname' => 'nextcloud',
'dbhost' => 'db',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'nextcloud',
'installed' => true,
);

View File

@ -37,6 +37,7 @@ services:
- db - db
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
- config.php:/var/www/html/config/config.php
environment: environment:
- MYSQL_PASSWORD=nextcloud - MYSQL_PASSWORD=nextcloud
- MYSQL_DATABASE=nextcloud - MYSQL_DATABASE=nextcloud