Nextcloud, Traffic from charts

papalangi

Dabbler
Joined
Dec 26, 2017
Messages
15
Hallo,
since some weeks I try to install Nextcloud on my TrueNAS scale 22.12.1
but I have great problems to access nextcloud.
I installed the following apps from
truecharts: pihole, Traefik and nextcoud
my first app was nextcloud from the official catalog. This installation works and I can sync my files from my two Mac computers without problems. But the access for cardiac and caldav o sync calendars and dress book does not work. Reason:
  • Letzte Cron-Job-Ausführung: Vor 15 Stunden. Check the background job settings ↗.
  • Ihr Webserver ist nicht richtig konfiguriert um "/.well-known/caldav" aufzulösen. Weitere Informationen hierzu finden Sie in unserer Dokumentation ↗.
  • Ihr Webserver ist nicht richtig konfiguriert um "/.well-known/carddav" aufzulösen. Weitere Informationen hierzu finden Sie in unserer Dokumentation ↗.
On my old truenas core installation I was able to fix this, but I don*t know how to do it in this version, because I have no access to the config-files.
What I learned is: that Traefik does this redirection for caldav and carddav to the right address , but it only works with the charts-catalog version.
So I tried to install the chart-version of nextcloud in addition.
here my configurations
Traefik:
1678027760800.png

1678027828874.png



all other points are not changed.
Nextcloud is configured as followed:

1678027924730.png


1678027978237.png

1678028008743.png

1678028050335.png


1678028096592.png


1678028194745.png

following points unchecked.
Now I see in Traefik the following screen:
1678028315721.png

1678028359235.png

1678028400295.png
i think this looks not bad. If I try to reach my nextcloud from the app-menu from truenas it tries to reach https://nextcloud2.local, but after 1 second the address switches to https://truenas.local:444/ui/apps. 172.16.10.22 seems to be the cluster-ip of cubernets as I understand.
I can access this nextcloud-instance with http://192.168.178.62:10020. But this does not work with https. Logged in to nextcloud it indicates that https is not configured.
I don't need an access to my network from the internet, for me it is sufficient to reach nextcloud in my local network.
Network is connected via a fritzbox to the internet. Internal net is 192.168.178.0/24. Truenas has 192.168.178.62
Pihole is also configured under 192.168.178.62:9089 and serves as DNS. So all d3evices in my net have the DNS 192.168.178.62 via DHCP configured.
So my question: I need one of my two nextcloud instances working with cardiac and caldav access. This works on iPhone only with configured https.
In the official version https works, but not the redirect, in the charts version the https does not work and also the redirect.
Has someone hints for me? I am also interested in useful literature about docker and cabernets, because this is completely new to me.
Regards Peter
 

Attachments

  • 1678027806335.png
    1678027806335.png
    54.8 KB · Views: 191
  • 1678028306745.png
    1678028306745.png
    45 KB · Views: 173

o1982

Dabbler
Joined
Jun 1, 2018
Messages
25
Hi Peter,

I'm not sure I can actually help you with your problem - I do not know why https://nextcloud2.local diverts to https://truenas.local:444/ui/apps.

But some (maybe) helpful info:

When using truecharts apps and PVC app storage, the configs are in the ix-applications dataset. Two easy ways to find/view them would be with "mc" in the shell or the "File Browser" app (need to get the app & dataset permissions correct).

Unfortunately I don't have experience with traefik, but if you have traefik doing the SSL offloading, you will not have to configure https on Nextcloud, so if Nextcloud complains that https is not configured, i think that is ok.
 

papalangi

Dabbler
Joined
Dec 26, 2017
Messages
15
thank you for the tip with mc.
I can now easily navigate through all files, and I found also some config files, but still don't know what to change :-(
who has a working Nextcloud/traefik combination and can give some hints?
 

dromney

Cadet
Joined
Mar 5, 2020
Messages
6
I am having similar issues with the "well-known" configuration, although mine is using the official Nextcloud app.
I have found a few suggestions about how to fix this going into the NGINX config files, but they are not where each of the suggestions states.
I have searched several possible locations but couldn't ever find a solution.
How can I solve these issues? Do I need to put it in the environment settings in the jail?
 

papalangi

Dabbler
Joined
Dec 26, 2017
Messages
15
In the meanwhile i Solved The Problem. I installed the truecharts Version and bought a Domain at ionos. Here i Got a certificate wich i Imported Intro truenas. I asked also at the discord Forum, Here they gave me the answer that only this config is Supported. And yes, now it Works. A Domain at ionos costs in the first year only one Euro.
 
Top