Page MenuHomeGitPull.it

Migrate InformAzionI's stuff from proprietary services to nextCloud
Closed, ResolvedPublic

Description

Migrate InformAzionI's stuff from proprietary services to nextCloud. Civvì would be very happy about this.

Event Timeline

After T408: Upgrade reyboz ownCloud to nextCloud

Updated the configuration files:

/etc/apache2/my-includes/reyboz.nextcloud.conf
# used by reyboz and informazioni

php_admin_flag  html_errors    0
php_admin_flag  display_errors 0
php_admin_value upload_max_filesize 5G
php_admin_value post_max_size       5G
php_admin_value open_basedir   /usr/share/javascript:/dev/urandom:/var/log:/usr/share/php:/usr/share/pear:/home/www-data/reyboz.it/nextcloud:/usr/share/pdf.js
php_admin_value upload_tmp_dir /home/www-data/reyboz.it/nextcloud/tmp
php_admin_value apc.writable   /home/www-data/reyboz.it/nextcloud/tmp

# suggested by https://nextcloud.reyboz.it/index.php/settings/admin
# since nextCloud 12 -- mar 29 set 2020, 14:13:54, CEST
php_admin_value opcache.enable 1
php_admin_value opcache.enable_cli 1
php_admin_value opcache.interned_strings_buffer 8
php_admin_value opcache.max_accelerated_files 10000
php_admin_value opcache.memory_consumption 128
php_admin_value opcache.save_comments 1
php_admin_value opcache.revalidate_freq 1

DocumentRoot /home/www-data/reyboz.it/nextcloud/www
Include      /home/www-data/reyboz.it/nextcloud/www/.htaccess

<Directory /home/www-data/reyboz.it/nextcloud/www>
	Options +FollowSymLinks
	AllowOverride None
	<IfVersion < 2.3>
		order allow,deny
		allow from all
	</IfVersion>
	<IfVersion >= 2.3>
		Require all granted
	</IfVersion>
</Directory>
/etc/apache2/sites-available/informazioni.nextcloud.conf
<virtualhost *:443>
	ServerName nextcloud.informazioni.wiki

	Include /etc/apache2/my-includes/reyboz.nextcloud.conf
	Include /etc/apache2/my-includes/ssl.strict.conf

	SSLEngine On
	SSLCertificateFile      /etc/letsencrypt/live/nextcloud.informazioni.wiki/cert.pem
	SSLCertificateKeyFile   /etc/letsencrypt/live/nextcloud.informazioni.wiki/privkey.pem
	SSLCertificateChainFile /etc/letsencrypt/live/nextcloud.informazioni.wiki/chain.pem
</virtualhost>

<virtualhost *:80>
	ServerName nextcloud.informazioni.wiki

	Redirect 301 / https://nextcloud.informazioni.wiki/
</virtualhost>
$ a2ensite informazioni.nextcloud.conf

Installed Let's Encrypt certificate for the domain nextcloud.informazioni.wiki:

$ certbot certonly --webroot --webroot-path=/home/www-data/reyboz.it/nextcloud/www -d nextcloud.informazioni.wiki