Setting up Nextcloud on cloudflare and local

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Some useful links to gather information about your Nextcloud Talk installation:
Information about Signaling server: /index.php/index.php/settings/admin/talk#signaling_server
Information about TURN server: /index.php/settings/admin/talk#turn_server
Information about STUN server: /index.php/settings/admin/talk#stun_server

Hello,

I have Nextcloud 33.0.5 running on a TrueNAS scale server. I have a domain set up through a Cloudflare tunnel for remote access. I want to connect to Nextcloud locally when I am at home for faster transferring, and connect to it through the domain when remote. I have tried a few things, including setting up a split DNS. When trying to configure Nextcloud to allow me to connect locally, it denies access to the web UI. I had it set up with the OVERWRITE variables, but removed them. I even went into the config file and removed the overwrite things and added the IP to trusted domains. overwriteprotocol keeps reappearing with ‘https’.

I also have nginx set up. It’s been a while since I set up this server, and I had to closely follow a tutorial to do it. That being said, parts of the configuration are a little hazy.

This is not a service-breaking issue. It would be really nice to have connection speeds faster than 5 MB/s when home.

Thank you

Hello @ConnorY,
welcome to the Nextcloud community :handshake:

Unfortunately you have not completed the required support template.

Please add config files, logs and error messages from you tries. Without additional information the community members cannot help you.

In general you don’t want to have different URLs - reasons have been discussed many times already local_network and best practise is splitbraindns as you already tried. please review 101: Split-Brain DNS (split-horizon) and add details. I could imagine you are using Cloudflare as reverse proxy - which obviously makes use of split-brain DNS impossible - you must configure your local Nginx with TLS certificate and use this IP as an entry point.

Regards,
wwe