Nextcloud Update & my current Webserver (Lighttpd)

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by MichaIng »

The issue with the redirects is a syntax error as you are missing the comma , behind each but the last redirect lines. Easiest is to copy&paste the configuration file I linked. The other two OCM/OCS provider redirects are not required with latest Nextcloud.

Disabling HTTPS won't work if HSTS was enabled before, at least not without using a different web browser or even OS. HSTS makes clients remember that the host is reachable via HTTPS and forces them to only accept HTTPS connections for the defined time, as security measure against DNS-wise attacks (e.g. letting the hostname resolve to a different server to steal your login credentials).

This is a Bullseye system, right?

Probably the combined cert+key file now needs to contain the full chain instead of the server certificate only. So the following could be tried:

Code: Select all

cat '/etc/letsencrypt/live/MYDOMAIN/privkey.pem' '/etc/letsencrypt/live/MYDOMAIN/fullchain.pem' > '/etc/letsencrypt/live/MYDOMAIN/combined.pem'
Since Buster, Lighttpd does not require a combined cert+key file anymore but can apply them individually now. So further you could try this in /etc/lighttpd/conf-available/50-dietpi-https.conf:
Change:

Code: Select all

	ssl.pemfile = "/etc/letsencrypt/live/MYDOMAIN/combined.pem"
	ssl.ca-file = "/etc/letsencrypt/live/MYDOMAIN/fullchain.pem"
to:

Code: Select all

	ssl.pemfile = "/etc/letsencrypt/live/MYDOMAIN/fullchain.pem"
	ssl.privkey = "/etc/letsencrypt/live/MYDOMAIN/privkey.pem"
	ssl.ca-file = "/etc/letsencrypt/live/MYDOMAIN/fullchain.pem"
rubinski
Posts: 24
Joined: Fri Jul 30, 2021 10:15 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by rubinski »

This is a Bullseye system, right?
I am not sure about this ..

Code: Select all

dietpi@DietPi:~$ uname -a
Linux DietPi 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux

Code: Select all

 DietPi v7.7.3 : 16:37 - Mon 11/08/21
 ─────────────────────────────────────────────────────
 - Device model : RPi 3 Model B (armv7l)
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by MichaIng »

Code: Select all

echo $G_DISTRO_NAME
rubinski
Posts: 24
Joined: Fri Jul 30, 2021 10:15 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by rubinski »

Thank you Guys!!
Just one simple Separator missing, or at the wrong place could be disastrous ... :)

Code: Select all

dietpi@DietPi:/var/www/nextcloud/config$ echo $G_DISTRO_NAME
buster
P.S.:

Is is possible to have multiple Versions of Dietpi-Backups?
Attachments
2021-11-08_17-33.png
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by Joulinar »

just if you create different backup folder. Can be done like this
  • dietpi-backup
  • Location
  • Manual
  • enter your new location inside /mnt/backup1.2.3.4.5.6...
  • <Ok>
  • <Cancel>
  • Backup
  • <Ok>
  • take a coffee
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by MichaIng »

Here is a cron job example which maintains a choosable amount of backups on a daily basis: viewtopic.php?p=17321#p17321
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by Joulinar »

maybe something for the docs :?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by MichaIng »

Or directly DietPi-Backup with next DietPi v7.9? Actually not a big deal to implement :?.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by Joulinar »

maybe we can talk about backups on our weekly call. :D
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply