Project

General

Profile

The ungleich Nextcloud guide » History » Version 3

Dominique Roux, 02/26/2020 02:30 PM

1 1 Dominique Roux
h1. The ungleich nextcloud guide
2
3
{{toc}}
4
5
h2. Status
6
7
This document is *IN PROGRESS*.
8
cloud.ungleich.ch is in production
9 2 Dominique Roux
10
h2. SEE ALSO
11
12
See [[datacenterlight:Glarnercloud]] for specific information for the Glarnercloud setup.
13
See "__ungleich_nextcloud":https://code.ungleich.ch/ungleich-public/__ungleich_nextcloud for specific parameters etc.
14
See "Nextcloud Admin Manual":https://docs.nextcloud.com/server/stable/admin_manual for the nextcloud documentation
15
16
h2. Installation
17
18
The installation is done with cdist. To be more specific, with the "__ungleich_nextcloud":https://code.ungleich.ch/ungleich-public/__ungleich_nextcloud cdist type.
19
The cdist type takes care of the following things:
20
21
# Installation of the necessary packages
22
# Configure php-fpm
23
# Setting up letsencrypt certificates
24
# Setting up nginx
25
# Setting up PostgreSQL
26
# Installation of nextcloud in _/var/www/nextcloud_
27
28
29
The manifest for cloud.ungleich.ch takes also care of:
30
31
# Deploying staff and backup ssh-keys
32
# Firewall setup
33
34
h2. Update
35
36
Procedure:
37
38
# Go to settings page (webbrowser) to see if all the checks are passed.
39
# SSH into the machine and go to _/var/www/nextcloud/updater_
40
# Run the following command:
41
<pre>
42
sudo -u www-data php updater.phar
43
</pre>
44
45 3 Dominique Roux
46
h2. Backup
47
48
cloud.ungleich.ch is backed up daily to backup.place5.ungleich.ch and backup.place6.ungleich.ch 
49
50
51 2 Dominique Roux
h2. Known Issues
52
53
h3. No auto updating
54
55
The updating procedure is manual done as instructed in [[The ungleich Nextcloud guide#Update]]
56
57
h3. Cdist type
58
59
The cdist type has several issues:
60
61
* The _--domain_ parameter should not have a default value. On the other hand, the manifest should then use the _$__target_host_ approach for this parameter
62
* The letsecnrypt configuration should probably be outsourced to the letsencrypt type (e.g. the nextcloud type should only setup the nextcloud instance on port 80, rest should be done in the main manifest. This would make the type more generic)