§2023-07-08
-
Nextcloudのconfig/config.php
# pwd
/var/www/nextcloud/config
# cp -v config.php config.php.backup
'config.php' -> 'config.php.backup'
$ ip ad
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:1e:06:49:00:c5 brd ff:ff:ff:ff:ff:ff
altname end0
inet 192.168.48.136/24 brd 192.168.48.255 scope global dynamic eth0
valid_lft 149016sec preferred_lft 149016sec
inet6 fe80::21e:6ff:fe49:c5/64 scope link
valid_lft forever preferred_lft forever
- config.php as,
- 2024-07-09
<?php
$CONFIG = array (
'instanceid' => 'oc5kx4u32hmz',
'passwordsalt' => 'BtMO2oEEHrT908y6jx8T9rF4IrSwpG',
'secret' => '/b7ZjNpCgXwswa6keolVOLmq53Vp/Xfrv4rlDjpi5UvN8TJZ',
'trusted_domains' => // spcify who could access this site
array (
0 => 'hc4bookworm.yushei.net:48501',
1 => 'munetaka.me:45103',
2 => 'fe80::21e:6ff:fe49:c5', // hc4Bookworm ip6
3 => '192.168.1.112', // when hooked in YS office
),
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '29.0.3.4',
'overwrite.cli.url' => 'http://hc4bookworm.yushei.net:48501',
'dbname' => 'nextcloud_db',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextclouduser',
'dbpassword' => 'hc4Bookworm.yushei.net#20240708',
'installed' => true,
'appstoreenabled' => true,
'appstoreurl' => 'https://apps.nextcloud.com',
'appcodechecker' => false,
'updater.server.url' => 'https://updates.nextcloud.com/updater_server/',
'trusted_proxies' =>
array (
0 => 'fe80::99ac:c8e9:8e35:ba39',
),
'allow_local_remote_servers' => true,
'local' =>
array (
0 => 'fe80::99ac:c8e9:8e35:ba39',
1 => 'github.com',
2 => '192.30.253.112',
3 => '192.30.253.113',
),
'appstore.experimental.enabled' => false,
'mail_from_address' => 'alexlai',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'h2Jammy.yushei.net',
'mail_smtphost' => 'h2jammy.yushei.net',
'mail_smtpport' => '25',
'mail_smtpauth' => 1,
'mail_smtpname' => 'alexlai',
'mail_smtppassword' => 'alex1765',
// apps store
'appstoreenabled' => true,
'appstoreurl' => 'https://apps.nextcloud.com/api/v1',
);
<?php
$CONFIG = array (
'instanceid' => 'oc5kx4u32hmz',
'passwordsalt' => 'BtMO2oEEHrT908y6jx8T9rF4IrSwpG',
'secret' => '/b7ZjNpCgXwswa6keolVOLmq53Vp/Xfrv4rlDjpi5UvN8TJZ',
'trusted_domains' =>
array (
0 => 'hc4bookworm.yushei.net:48501',
1 => 'munetaka.me:45103',
2 => 'fe80::21e:6ff:fe49:c5',
),
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '29.0.3.4',
'overwrite.cli.url' => 'http://hc4bookworm.yushei.net:48501',
'dbname' => 'nextcloud_db',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextclouduser',
'dbpassword' => 'hc4Bookworm.yushei.net#20240708',
'installed' => true,
// Nextcloud uses a config.php option called appstoreenabled and appstoreurl
// to manage the app store and its connections.
'appstoreenabled' => true,
'appstoreurl' => 'https://apps.nextcloud.com/api/v0',
'appcodechecker' => false,
'updater.server.url' => 'https://updates.nextcloud.com/updater_server/',
'trusted_proxies' => [
'fe80::99ac:c8e9:8e35:ba39',
],
'allow_local_remote_servers' => true,
'local' => [
'fe80::99ac:c8e9:8e35:ba39',
'github.com',
'192.30.253.112',
'192.30.253.113',
],
);