Skip to content

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

License

Notifications You must be signed in to change notification settings

uetchy/docker-nextcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks