Logging out of the client to change the server URL results in everything being re-synced when relinking folders. Found server address stored in
AppData\Local\nextcloud.cfg
Will changing the server URL have any unintended side effects on the client (assuming the server is configured correctly)?
Also where is the server URL setting stored on Linux? Looked through the .config, ect files on Linux but must have missed it.
Wish it would but a 301 redirect in Apache or Nginx won’t work. When signing into the client the SSL certificate is used/saved. If redirected to another URL the client saved/used SSL certificate will invariably be invalid for the server it is redirected to.
It makes sense that nobody can easily redirect all the clients (proxy, …). I don’t know if it works with multi-domain certificates which is possible with letsencrypt. I’ll have to test this.
Mac OS is probably the same place as Linux. Just make sure you can see hidden files in order to see the .local folder in your user profile folder root.
@schnappi: does this file exist for you or did you create it? I do not see this config file in place even though I am connected and sycned with one nc server.
It already existed. It’s possible there is a different configuration file now. I stopped using Nextcloud awhile ago. Syncthing is much better and almost as importantly the developers are more responsive and community more helpful.
@bd12 Can you see hidden files? If so can you access .local in the root of your profile folder?
sorry to bump that old thread but I found that the above solution still works today and I don’t want to keep this to myself.
I found the file under $HOME/.config/Nextcloud/nextcloud.cfg.
Replacing the URL worked nicely. Once I passed the login there was no need for full re-sync.