uetchy / docker-nextcloud

Performance-optimized Docker image for Nextcloud, including thumbnail generator patches for PDF, Affinity and HEIC.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Nextcloud

  • build-time uid/gid conversion
  • thumbnail generation for PDF, Affinity Photo, and Affinity Design
  • built-in collabora server (https:///collabora)
  • performance tweak

usage

installation

cp .env.sample .env
vim .env # fill the blank variables
make # pull, build, start
make applypatches # run only once

logging

docker-compose logs -f app
tail -f <data_dir>/nextcloud.log | jq .

occ

./occ

configuration

monkeypatch

Adds thumbnail generation capability for:

  • PDF .pdf
  • Affinity Photo .afphoto
  • Affinity Design .afdesign
# after installation
./patches/apply.sh
'enabledPreviewProviders' =>
  array (
    1 => 'OC\\Preview\\PDF',
    2 => 'OC\\Preview\\Affinity',
    ...
  ),

Tweak PHP

/usr/local/etc/php/conf.d/*
/usr/local/php/php/fpm

php -r 'phpinfo();'
php-fpm -i

CSRF check failed issue

Add this lines to config/config.php:

'overwrite.cli.url' => 'https://<domain>',
'overwriteprotocol' => 'https',

Reset locked state

./occ maintenance:mode --on
docker-compose exec db mysql -u root -p
use cloud_db
delete from oc_file_locks where 1;
./occ maintenance:mode --off

license

based on evertramos/docker-nextcloud-letsencrypt

About

Performance-optimized Docker image for Nextcloud, including thumbnail generator patches for PDF, Affinity and HEIC.

License:Other


Languages

Language:Dockerfile 45.2%Language:Shell 36.6%Language:Makefile 18.1%