Guten Tag
Ich hoffe es ist in Ordnung wenn ich die Anfrage auf Deutsch stelle.
Ich bin neu in dem Thema und habe mir jetzt eine Nextcloud mit der DietPi erstellt. Diese funktioniert auch wunderbar ich komme von intern auf die Nextcloud über http. Was ja auch erste mal reicht.
Jetzt möchte ich von unterwegs auch dort zugreifen können. Dafür habe ich mich einen NGX Proxy installiert und eingerichtet. Danke noch mal an die Video die waren sehr hilfreich.
Wenn ich jetzt von Extern mit einem Browser auf die Nextcloud zugreife geht das auch. Jetzt habe ich die App auf meinem Smartphone. Dort findet er zwar den Server und leite mich dann weiter zum Browser. Dort soll ich dann den zugriff gewähren. Dort bleibt er dann hängen und der kreisel dreht immer weiter.
Jetzt habe ich Einlösung dafür gefunden.
chmod 700 occ
sudo -u www-data ./occ config:system:set overwriteprotocol --value="https"
Damit setzte ich das Parameter overwrite in der /var/www/nextcloud/config/config.php
Damit klappt dann auch das einrichten der App. aber mit diesem Parameter kann ich nicht mehr auf die Nextcloud von intern zugreifen.
Gibt es eine Möglichkeit von beiden Seite zuzugreifen?
Ich als Leihe würde ja sagen das ich nur https auch intern zu aktiviern aber ich habe keinen Ahnung wie. vor allem da ich dort ja nicht mehr einer URL sondern Ip verbinde.
Was ich mir noch gedacht habe ich eine eigene URL erfinden und in meinem ADGuard auf die IP umleiten. Aber wie richte ich den Apache oder die Nextcloud ein da sich die etwas von der Normal Installation abweicht. Kann ich da mit einem selbst erzeugten Zertifikat arbeiten?
Danke schon mal für die Hilfe.
P.S. Ich werde den Text noch mal mit ChatGPT ins Englsche übersetzen:
Good day,
I hope it’s okay that I’m asking this in German.
I am new to this topic and have set up a Nextcloud with DietPi. It works perfectly, and I can access the Nextcloud internally via HTTP, which is fine for the time being.
Now, I would like to be able to access it remotely as well. To do this, I installed and configured an NGX Proxy. Thanks again for the videos, they were very helpful.
When I now access the Nextcloud externally via a browser, it works. I also have the app on my smartphone. It finds the server but then redirects me to the browser. There, I am asked to grant access, but it gets stuck and the loading circle keeps spinning.
I have found a solution for this.
chmod 700 occ
sudo -u www-data ./occ config:system:set overwriteprotocol --value="https"
This sets the overwriteprotocol parameter in the /var/www/nextcloud/config/config.php file.
This allows me to set up the app, but with this parameter, I can no longer access Nextcloud internally.
Is there a way to access it from both sides?
As a layman, I would say that I should enable HTTPS internally as well, but I have no idea how, especially since I am connecting via an IP rather than a URL.
What I also thought about was creating a custom URL and redirecting it to the IP in my ADGuard. But how do I configure Apache or Nextcloud since it deviates a bit from the normal installation? Can I use a self-generated certificate for this?
Thanks in advance for the help.