Anyone running their own Nextcloud server? Need some help please

Commissario
Joined
16 Oct 2002
Posts
2,821
Location
In the radio shack
Hi folks,

I've got a Nextcloud server set up on a Raspberry Pi using this guide: https://www.raspberrypi.org/forums/viewtopic.php?f=36&t=160874

It works perfectly, no problem at all.

Except for one thing. The client on my main computer always talks to it using the external address. So if I dump a 5Gb file into a folder to sync, it effectively connects out on my Infinity connection and back in again.

I guess this is because of the redirect on the main login page, configured with this step:
Code:
<meta http-equiv="refresh" content="0; URL='http://MY.NEXTCLOUD.NAMEDADDRESS.COM/nextcloud'" />

If I point the Nextcloud client at the direct IP of my server, it gets redirected to the external address.

This means that transfers only go at my maximum upload speed rather than directly over the LAN to the server.

I can't figure out a way around this.

Can anyone help please?

Thanks.
 
Associate
Joined
10 Mar 2003
Posts
288
Does a quick and dirty edit to the hosts file work? Point MY.NEXTCLOUD.NAMEDADDRESS.COM to the server IP address, although will that break your SSL cert?
The best option (and how I do it on FreeBSD and Nginx / Percona) is to not have it as a folder, but on it's own dedicated subdomain (look at apache virtual hosts). I run my own DNS server on my network and ensure that the DNS matches with my own domain DNS, so it just works whether on my LAN or away from home, but if it's a computer on your LAN you can then just edit the hosts file so that cloud.yourdomain.com points to your server IP address, and do away with that redirect.
 
Back
Top Bottom