|
| 1 | +apiVersion: v1 |
| 2 | +kind: ConfigMap |
| 3 | +metadata: |
| 4 | + name: nextcloud-config |
| 5 | +data: |
| 6 | + base.config.php: | |
| 7 | + <?php |
| 8 | + $CONFIG = array ( |
| 9 | + 'passwordsalt' => getenv('NEXTCLOUD_PASSWORDSALT'), |
| 10 | + 'secret' => getenv('NEXTCLOUD_SECRET'), |
| 11 | + 'instanceid' => getenv('NEXTCLOUD_INSTANCEID'), |
| 12 | + 'overwrite.cli.url' => 'https://drive.trap.jp', |
| 13 | + 'upgrade.disable-web' => true, |
| 14 | + 'trusted_domains' => ['drive.trap.jp'], |
| 15 | + 'apps_paths' => array ( |
| 16 | + 0 => array ( |
| 17 | + 'path' => '/var/www/html/apps', |
| 18 | + 'url' => '/apps', |
| 19 | + 'writable' => false, |
| 20 | + ), |
| 21 | + 1 => array ( |
| 22 | + 'path' => '/var/www/html/custom_apps', |
| 23 | + 'url' => '/custom_apps', |
| 24 | + 'writable' => true, |
| 25 | + ), |
| 26 | + ), |
| 27 | +
|
| 28 | + 'mail_smtpmode' => 'smtp', |
| 29 | + 'mail_smtphost' => 'smtp.sendgrid.host', |
| 30 | + 'mail_smtpport' => '465', |
| 31 | + 'mail_smtpsecure' => 'ssl', |
| 32 | + 'mail_smtpauth' => true, |
| 33 | + 'mail_smtpauthtype' => 'LOGIN', |
| 34 | + 'mail_smtpname' => 'apikey', |
| 35 | + 'mail_smtppassword' => getenv('SMTP_PASSWORD'), |
| 36 | + 'mail_from_address' => 'drive.system', |
| 37 | + 'mail_domain' => 'trap.jp', |
| 38 | +
|
| 39 | + 'memcache.local' => '\OC\Memcache\APCu', |
| 40 | + 'memcache.distributed' => '\OC\Memcache\Redis', |
| 41 | + 'memcache.locking' => '\OC\Memcache\Redis', |
| 42 | + 'redis' => array( |
| 43 | + 'host' => 'valkey', |
| 44 | + 'user' => 'default', |
| 45 | + 'password' => getenv('VALKEY_PASSWORD'), |
| 46 | + ), |
| 47 | +
|
| 48 | + 'objectstore' => array( |
| 49 | + 'class' => '\OC\Files\ObjectStore\S3', |
| 50 | + 'arguments' => array( |
| 51 | + 'bucket' => 'trap-nextcloud', |
| 52 | + 'region' => 'ap-northeast-1', |
| 53 | + 'hostname' => 's3.ap-northeast-1.wasabisys.com', |
| 54 | + 'use_ssl' => true, |
| 55 | + 'key' => getenv('S3_ACCESS_KEY'), |
| 56 | + 'secret' => getenv('S3_SECRET_KEY'), |
| 57 | + 'objectPrefix' => 'urn:oid:', |
| 58 | + 'autocreate' => false, |
| 59 | + 'use_path_style' => true, |
| 60 | + ), |
| 61 | + ), |
| 62 | +
|
| 63 | + 'dbtype' => 'mysql', |
| 64 | + 'dbhost' => 'tailscale.kmbk.tokyotech.org', |
| 65 | + 'dbuser' => 'service_drive', |
| 66 | + 'dbpassword' => getenv('DB_PASSWORD'), |
| 67 | + 'dbname' => 'service_drive', |
| 68 | + 'dbtableprefix' => 'oc_', |
| 69 | + 'mysql.utf8mb4' => true, |
| 70 | + ); |
0 commit comments