mirror of
https://github.com/mtan93/install-nextcloud.git
synced 2026-03-19 13:21:00 +00:00
Add files via upload
This commit is contained in:
@@ -160,36 +160,36 @@ mv /etc/mysql/my.cnf /etc/mysql/my.cnf.bak
|
|||||||
touch /etc/mysql/my.cnf
|
touch /etc/mysql/my.cnf
|
||||||
cat <<EOF >/etc/mysql/my.cnf
|
cat <<EOF >/etc/mysql/my.cnf
|
||||||
[server]
|
[server]
|
||||||
skip-name-resolve
|
skip-name-resolve
|
||||||
innodb_buffer_pool_size = 128M
|
innodb_buffer_pool_size = 128M
|
||||||
innodb_buffer_pool_instances = 1
|
innodb_buffer_pool_instances = 1
|
||||||
innodb_flush_log_at_trx_commit = 2
|
innodb_flush_log_at_trx_commit = 2
|
||||||
innodb_log_buffer_size = 32M
|
innodb_log_buffer_size = 32M
|
||||||
innodb_max_dirty_pages_pct = 90
|
innodb_max_dirty_pages_pct = 90
|
||||||
query_cache_type = 1
|
query_cache_type = 1
|
||||||
query_cache_limit = 2M
|
query_cache_limit = 2M
|
||||||
query_cache_min_res_unit = 2k
|
query_cache_min_res_unit = 2k
|
||||||
query_cache_size = 64M
|
query_cache_size = 64M
|
||||||
tmp_table_size= 64M
|
tmp_table_size= 64M
|
||||||
max_heap_table_size= 64M
|
max_heap_table_size= 64M
|
||||||
slow-query-log = 1
|
slow-query-log = 1
|
||||||
slow-query-log-file = /var/log/mysql/slow.log
|
slow-query-log-file = /var/log/mysql/slow.log
|
||||||
long_query_time = 1
|
long_query_time = 1
|
||||||
|
|
||||||
[client-server]
|
[client-server]
|
||||||
!includedir /etc/mysql/conf.d/
|
!includedir /etc/mysql/conf.d/
|
||||||
!includedir /etc/mysql/mariadb.conf.d/
|
!includedir /etc/mysql/mariadb.conf.d/
|
||||||
|
|
||||||
[client]
|
[client]
|
||||||
default-character-set = utf8mb4
|
default-character-set = utf8mb4
|
||||||
|
|
||||||
[mysqld]
|
[mysqld]
|
||||||
character-set-server = utf8mb4
|
character-set-server = utf8mb4
|
||||||
collation-server = utf8mb4_general_ci
|
collation-server = utf8mb4_general_ci
|
||||||
binlog_format = MIXED
|
binlog_format = MIXED
|
||||||
innodb_large_prefix=on
|
innodb_large_prefix=on
|
||||||
innodb_file_format=barracuda
|
innodb_file_format=barracuda
|
||||||
innodb_file_per_table=1
|
innodb_file_per_table=1
|
||||||
EOF
|
EOF
|
||||||
service mysql restart && mysql -uroot <<EOF
|
service mysql restart && mysql -uroot <<EOF
|
||||||
CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|||||||
@@ -31,50 +31,50 @@ sudo -u www-data php /var/www/nextcloud/occ background:cron
|
|||||||
sed -i '/);/d' /var/www/nextcloud/config/config.php
|
sed -i '/);/d' /var/www/nextcloud/config/config.php
|
||||||
cat <<EOF >>/var/www/nextcloud/config/config.php
|
cat <<EOF >>/var/www/nextcloud/config/config.php
|
||||||
'activity_expire_days' => 14,
|
'activity_expire_days' => 14,
|
||||||
'auth.bruteforce.protection.enabled' => true,
|
'auth.bruteforce.protection.enabled' => true,
|
||||||
'blacklisted_files' =>
|
'blacklisted_files' =>
|
||||||
array (
|
array (
|
||||||
0 => '.htaccess',
|
0 => '.htaccess',
|
||||||
1 => 'Thumbs.db',
|
1 => 'Thumbs.db',
|
||||||
2 => 'thumbs.db',
|
2 => 'thumbs.db',
|
||||||
),
|
),
|
||||||
'cron_log' => true,
|
'cron_log' => true,
|
||||||
'enable_previews' => true,
|
'enable_previews' => true,
|
||||||
'enabledPreviewProviders' =>
|
'enabledPreviewProviders' =>
|
||||||
array (
|
array (
|
||||||
0 => 'OC\\Preview\\PNG',
|
0 => 'OC\\Preview\\PNG',
|
||||||
1 => 'OC\\Preview\\JPEG',
|
1 => 'OC\\Preview\\JPEG',
|
||||||
2 => 'OC\\Preview\\GIF',
|
2 => 'OC\\Preview\\GIF',
|
||||||
3 => 'OC\\Preview\\BMP',
|
3 => 'OC\\Preview\\BMP',
|
||||||
4 => 'OC\\Preview\\XBitmap',
|
4 => 'OC\\Preview\\XBitmap',
|
||||||
5 => 'OC\\Preview\\Movie',
|
5 => 'OC\\Preview\\Movie',
|
||||||
6 => 'OC\\Preview\\PDF',
|
6 => 'OC\\Preview\\PDF',
|
||||||
7 => 'OC\\Preview\\MP3',
|
7 => 'OC\\Preview\\MP3',
|
||||||
8 => 'OC\\Preview\\TXT',
|
8 => 'OC\\Preview\\TXT',
|
||||||
9 => 'OC\\Preview\\MarkDown',
|
9 => 'OC\\Preview\\MarkDown',
|
||||||
),
|
),
|
||||||
'filesystem_check_changes' => 0,
|
'filesystem_check_changes' => 0,
|
||||||
'filelocking.enabled' => 'true',
|
'filelocking.enabled' => 'true',
|
||||||
'htaccess.RewriteBase' => '/',
|
'htaccess.RewriteBase' => '/',
|
||||||
'integrity.check.disabled' => false,
|
'integrity.check.disabled' => false,
|
||||||
'knowledgebaseenabled' => false,
|
'knowledgebaseenabled' => false,
|
||||||
'logtimezone' => 'Europe/Berlin',
|
'logtimezone' => 'Europe/Berlin',
|
||||||
'log_rotate_size' => 104857600,
|
'log_rotate_size' => 104857600,
|
||||||
'memcache.local' => '\\OC\\Memcache\\APCu',
|
'memcache.local' => '\\OC\\Memcache\\APCu',
|
||||||
'memcache.locking' => '\\OC\\Memcache\\Redis',
|
'memcache.locking' => '\\OC\\Memcache\\Redis',
|
||||||
'preview_max_x' => 1024,
|
'preview_max_x' => 1024,
|
||||||
'preview_max_y' => 768,
|
'preview_max_y' => 768,
|
||||||
'preview_max_scale_factor' => 1,
|
'preview_max_scale_factor' => 1,
|
||||||
'redis' =>
|
'redis' =>
|
||||||
array (
|
array (
|
||||||
'host' => '/var/run/redis/redis.sock',
|
'host' => '/var/run/redis/redis.sock',
|
||||||
'port' => 0,
|
'port' => 0,
|
||||||
'timeout' => 0.0,
|
'timeout' => 0.0,
|
||||||
),
|
),
|
||||||
'quota_include_external_storage' => false,
|
'quota_include_external_storage' => false,
|
||||||
'share_folder' => '/Shares',
|
'share_folder' => '/Shares',
|
||||||
'skeletondirectory' => '',
|
'skeletondirectory' => '',
|
||||||
'trashbin_retention_obligation' => 'auto, 7',
|
'trashbin_retention_obligation' => 'auto, 7',
|
||||||
);
|
);
|
||||||
EOF
|
EOF
|
||||||
restart_all_services
|
restart_all_services
|
||||||
|
|||||||
Reference in New Issue
Block a user