I did a completely fresh install of Ubuntu and NextCloud server using snap yesterday. The GUI for NextCloud comes up on the Ubuntu box when I enter ālocalhostā on the browser. I want to be able to access NextCloud from another computer. I see that I may need to add a trusted_domain section in the config.php file, which I finally found buried deep here:
/var/snap/nextcloud/current/nextcloud/config/config.php
I added the following section to it, adding the IP address of another computer on the same local network as the Nextcloud server PC:
ātrusted_domainā =>
array (
0 = 192.168.0.100ā,
),
Now it wonāt even let me connect to the GUI on the Ubuntu box where itās running. When I put ālocalhostā into the browser it says:
Internal Server Error
The server encountered an internal error and was unable to complete your request, etc.
And when I try to connect to the IP of the Nextcloud server PC from another PC on the same local network, I get the same error.
But when I completely remove the trusted_domain section, I can open the GUI on the Nextcloud box, and when I try to connect to the Nextcloud server from another PC on the same local network, at least is gives me a screen that says:
Access through untrusted domain
Please contact your administrator. If you are an administrator, edit the ātrusted_domainsā setting in config/config.php like the example in config.sample.php.
Further information how to configure this can be found in the documentation.
What should I do? Nextcloud is kinda useless if I canāt access from it outside the PC that itās running on.
Ultimately, I want to connect it to a TrueNAS installion I have running on another PC on the same local network. But this may be too complicated, and will likely never work.
Thanks! I am really trying to learn. I was up all last night fiddling with this setting, and could not make a simple connection to a PC on the same local network. I looked at countless online sources, and none it provided a step-by-step solution.