How to Restrict Nextcloud to LAN?

Hi. I’ve got nextcloud installed and working properly; it is currently accessible from the internet on a domain I own. subdomain.domain.com.

I no longer wish for nextcloud to be accessible over the internet. I only want to access it on my home network (via Tailscale VPN).

can you help me by telling what changes I need to make to yunohost web GUI and or to files via ssh?

thanks

1 Like

Lookup adding allow 100.64.0.0/10; then deny all; clauses to the Nextcloud location block in /etc/nginx/conf.d/<domain.tld>/nextcloud.conf.

100.64.0.0/10 is the default network subnet assigned by Headscale in YunoHost. To be tweaked appropriately.

Test the configuration with nginx -t then sudo systemctl reload nginx.

From then on, YunoHost Diagnosis wlll complain about the file being manually altered. Ignore that.

1 Like

If you don’t mind not to use the Yunohost web GUI or manually change config files, you can use the Nextloud-provided app for that.

It does just the same, but then from the Nextcloud-interface :stuck_out_tongue:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.