NextCloud: Difference between revisions
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
https://github.com/nextcloud/server/pull/23606/files | https://github.com/nextcloud/server/pull/23606/files | ||
=== NFS-Share === | |||
<p>Adding an NFS-Share (NAS) where all the user files will be stored.</p> | |||
<p>Install required packages</p> | |||
<syntaxhighlight lang="console" line> | |||
apt install nfs-common | apt install nfs-common | ||
apt install nfs4-acl-tools | apt install nfs4-acl-tools | ||
</syntaxhighlight> | |||
<p>Mount the nfs-share to the data folder</p> | |||
<syntaxhighlight lang="console" line> | |||
mount -t nfs 192.168.88.5:/mnt/zpool1/NextCloud /home/data/ | mount -t nfs 192.168.88.5:/mnt/zpool1/NextCloud /home/data/ | ||
192.168.88.5:/mnt/zpool1/NextCloud /home/data/ nfs defaults 0 0 | 192.168.88.5:/mnt/zpool1/NextCloud /home/data/ nfs defaults 0 0 | ||
</syntaxhighlight> | |||
U4v3kraALVSTEyTQ | U4v3kraALVSTEyTQ | ||
//ReScan all files after mounting: | //ReScan all files after mounting: | ||
Line 65: | Line 68: | ||
* [https://www.howtoforge.com/tutorial/how-to-install-nextcloud-on-debian-10/ NextCloud on Debian]+ | * [https://www.howtoforge.com/tutorial/how-to-install-nextcloud-on-debian-10/ NextCloud on Debian]+ | ||
* [https://www.youtube.com/watch?v=QB_FEWJ9BB4 Nextcloud Installation auf Ubuntu 20.04 Server] | * [https://www.youtube.com/watch?v=QB_FEWJ9BB4 Nextcloud Installation auf Ubuntu 20.04 Server] | ||
* [https://linuxhint.com/mount_nfs_share_debian/ nfs-share] |
Revision as of 00:15, 20 February 2021
IP: | 192.168.88.10 |
---|---|
MAC: | B2:62:86:48:66:66 |
Domain: | cloud.flowerhouse.at |
Privileged: | Yes |
---|
The NextCloud-LXC is reachable under 192.168.88.10
which is located in the ServerVLAN.
The subdomain is cloud.flowerhouse.at which is handled by the ReverseProxy.
Basic Setup
NextCloud
For the NextCloud installation to work in an Container, it must be privileged, otherwise it is impossible to mount an external storage
//----- CLEAN NEXTCLOUD INSTALLATION -----
//installation-path: /var/www/nextcloud
//data-Path: /home/data
//Install missing php-package apt install php-intl
//Add trusted domain nano /var/www/nextcloud/config/config.php
//Zur Datei hinzufügen 'trusted_domains' =>
array ( 0 => '192.168.88.10', 1 => 'cloud.flowerhouse.at', ),
//Neu laden systemctl restart apache2
//Bug-FIX https://github.com/nextcloud/server/pull/23606/files
Adding an NFS-Share (NAS) where all the user files will be stored.
Install required packages
apt install nfs-common
apt install nfs4-acl-tools
Mount the nfs-share to the data folder
mount -t nfs 192.168.88.5:/mnt/zpool1/NextCloud /home/data/
192.168.88.5:/mnt/zpool1/NextCloud /home/data/ nfs defaults 0 0
U4v3kraALVSTEyTQ //ReScan all files after mounting: sudo -u www-data php /var/www/nextcloud/occ files:scan --all
//UPLOAD SIZE client_max_body_size 100M; in reverse-proxy.conf und nginx.conf wichtig. MaxFileSize = Useable RAM https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf#L76
//NextCloud Reverse Proxy config https://help.nextcloud.com/t/connection-wizard-is-looping-between-log-in-and-grant-access/46809/4
//Import external storage https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/external_storage_configuration_gui.html