카테고리 없음
nextcloud 환경 설정
주술쟁이
2024. 8. 26. 20:19
<?php
$CONFIG = array (
'instanceid' => '***',
'passwordsalt' => '***',
'secret' => '***',
'trusted_domains' =>
array (
0 => '도메인1',
1 => '도메인2',
),
'datadirectory' => '/var/www/html/nextcloud/data',
'skeletondirectory' => '', //빈폴더로 생성 '/var/www/html/nextcloud/core/skeleton',
'dbtype' => 'mysql',
'version' => '29.0.5.1',
'overwrite.cli.url' => 'https://도메인1',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'DB비밀번호',
'installed' => true,
'default_phone_region' => 'KR',
'maintenance_window_start' => 3,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'bruteforce.protection.enabled' => true, // 브루트 포스 보호 기능 활성화 - 특정IP로 많이 접속하면 공격으로 보고 접속을 지연시킴.
'bruteforce.protection.exempt_ips' => ['내주접속IP'], // 예외로 설정할 IP 주소 추가
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
'mail_smtpmode' => 'sendmail',
'mail_smtphost' => '127.0.0.1',
'mail_smtpport' => '25',
'mail_smtptimeout' => 10,
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'noempty',
'mail_sendmailmode' => 'pipe',
'mail_domain' => 'ncsoft.com',
'remember_login_cookie_lifetime' => 1296000,
'session_lifetime' => 86400,
'session_keepalive' => true,
'firstrunwizard' => false,
'user_search_min_length' => 15,
//'logfile' => '/var/www/html/nextcloud/data/nextcloud.log', //로그파일 위치를 따로 설정 가능.
'loglevel' => 1,
'log.condition' => [
'apps' => ['admin_audit'],
],
'logtimezone' => 'Asia/Seoul', //로그기록 timezone
'auditlog' => true,
'log_query' => true,
'app_install_overwrite' =>
array (
0 => 'files_trackdownloads',
1 => 'ransomware_protection',
),
'admin_audit' => [
'ignored_events' => [
'OCA\Federation\Events\ShareCreated',
'OCA\Federation\Events\ShareAccepted',
'OCA\Federation\Events\ShareDeclined',
'OCA\Federation\Events\ShareRemoved'
]
], //Federation 로그 비활성화. Federation는 nextcloud간 클라우드 연합시 사용됨. 단속으로 사용시에는 Federation 앱을 비활성화 후 로그도 비활성화 필요.
'maintenance' => false,
'theme' => '',
);