I am running NC 17.0.2 on a Raspberry Pi, with the back end hosted in a second “DB Server” Raspberry Pi. That is hosting MariaDB v10.3.22… Everything is working perfectly and I have no operational issues with this setup.
However, I am about to move these machines - and a bunch of other kit - to a new network, which means I’ll be moving from a Class C (192.168.1.x) to a Class B (172.16.x.y) network.
All my Pi’s are running as servers [I have a small Pi farm] and so changing the static IP addresses won’t be difficult. I’m using PiHole DNS sink and using that to double as my local DNS, so re-mapping all my hosts to new IP addresses is trivial…
But I want to make sure that my hosted apps survive the move. I’ve looked in my ~/www/nextcloud/config/ folder and examined the config.php file for my NextCloud deployment.
Everything there looks pretty straightforward… From what I can make out, I am going to need to:-
- Change the ‘trusted_domains’ array 0 value from “192.168.1.35” to “172.16.x.y” (new IP address of NC host)
- Change the ‘dbhost’ value from “192.168.1.37:3306” to “172.16.x.y:3306” (new address of DB host)
- Change the IP Address of both of these hosts, preferably with NextCloud shutdown and the changes performed in a logical sequence…
I’ve had a look through the rest of the NextCloud setup and configuration area. I don’t have much in the way of applications installed, but there doesn’t seem anything else I need to worry about.
However, having been burned before, I thought it would be a good idea to ask the community if I’ve missed anything. Just want to check and ensure that there are no hidden issues anywhere please?
Thanks in advance for any responses.