Nextcloud wont save changes 000-default.conf

itpaladin593

Cadet
Joined
Nov 18, 2023
Messages
2

Hi, noob here,
I am trying to set a practice homelab using apps in truenas using nextcloud, so far good. the only problem is when I try to fix the caldav and cardav, the file 000-default.conf wont save the configuration and I dont know why. Everytime I restart the app the file come back to its original configuration. I am using the shell of the app, the others config files i am able to change it. Also I have to reinstall nano app everytime I restart the app... Please advise.

Thanks

1700366029580.png
 

itpaladin593

Cadet
Joined
Nov 18, 2023
Messages
2
btw this is the config that I want to add to the 000-default.conf file:

Redirect 301 /.well-known/carddav https://cloud.itpaladin.wtf/remote.php/dav
Redirect 301 /.well-known/caldav https://cloud.itpaladin.wtf/remote.php/dav
Redirect 301 /.well-known/webdav https://cloud.itpaladin.wtf/remote.php/dav
Redirect 301 /.well-known/webfinger https://cloud.itpaladin.wtf/index.php
Redirect 301 /.well-known/nodeinfo https://cloud.itpaladin.wtf/index.php

I added the youtube video as a reference guide I am using for this set up. minute 20:09
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
These are containers, and that's the way containers work. You cannot modify something that is set by the container as the container when it initializes sets everything back to it's own default (the storage is not persistent) that is not otherwise stored in a hostpath or other storage config.

What you could do is set a hostpath for the files or directory you are interested in changing. In that way, the files (or directory) are stored outside the container and are persistent.

You should learn about docker and how it works as far as containers go.
 
Top