-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
43 lines (29 loc) · 1.53 KB
/
README
File metadata and controls
43 lines (29 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Configuration of RaspberryPi server
Shall use of docker-compose/docker as much as possible to
* allow update of services to e.g. current PHP versions independent of host system (security!)
* allow migration by using the same software versions on different machines
Expects a /var/nextcloud directory. Subfolders might be generated by scripts?
Secrets should be in unmanaged .env files to allow putting this on github
The Raspberry makes use of two attached hard drives for file storage and backup purposes.
Contains
- nextcloud (+ mariadb, nginx, collabora, redis)
- influxdb2
- SBFSpot
- letsencrypt
- zigbee2mqtt
- homeassistant
TODO
- integrate smarthome stuff?
## root crontab stuff (aggregated)
15 2 * * 1 /bin/bash /home/pi/cloudy/scripts/backup.sh >> /home/pi/cloudy/logs/backup.log 2>&1
15 2 * * 2 /bin/bash /home/pi/cloudy/certbot/certbot.sh >> /home/pi/cloudy/logs/certbot.log 2>&1
15 2 * * 3 /bin/bash /home/pi/cloudy/scripts/updater.sh >> /home/pi/cloudy/logs/updater.log 2>&1
*/5 * * * * docker exec -u www-data nextcloud-nextcloud php /var/www/html/cron.php >> /home/pi/cloudy/logs/cron.php.log 2>&1
*/5 6-22 * * * docker start -a sbfspot-daydata
55 05 * * * docker start -a sbfspot-monthdata
## Further services enabled on system level
- MQTT (apt install mosquitto mosquitto-clients)
- SAMBA (apt install samba)
- NFS (apt install nfs-kernel-server nfs-common)
## logrotate
Setup logrotate daemon to compress/remove logs if desired