# Allowing public share links for private instance

**URL:** <https://help.nextcloud.com/t/allowing-public-share-links-for-private-instance/234817>\
**Category:** ℹ️ Support\
**Created:** [October 27, 2025, 6:03pm UTC](https://help.nextcloud.com/t/allowing-public-share-links-for-private-instance/234817 "2025-10-27T18:03:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan1](https://help.nextcloud.com/letter_avatar/ryan1/32/6_22734026db12803ebb3e059622ac3534.png) [@Ryan1](https://help.nextcloud.com/u/Ryan1)\
**Post date:** [October 27, 2025, 6:03pm UTC](https://help.nextcloud.com/t/allowing-public-share-links-for-private-instance/234817/1 "2025-10-27T18:03:11Z")

</div>

We are installing nextcloud for our small business on an internal server so that it will only be accessible when on our office network (either physically or remotely via VPN). However we occasionally need to share files publicly so we would like to see if we could get share links working publicly.

My though was if we had the instance at `nc.example.com` Could we configure share links to use a different domain like `share.example.com` and setup a publicly exposed server for that domain to reverse proxy those request to the nextcloud instance?

Or is there some other way I am not aware of to accomplish this same thing?

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [October 27, 2025, 8:19pm UTC](https://help.nextcloud.com/t/allowing-public-share-links-for-private-instance/234817/2 "2025-10-27T20:19:53Z")

</div>

Yes i think it is possible. But if you do not really want it because of security reason maybe you can buy an additional Managed Nextcloud only for sharing. You can use e.g. CNAME to map a subdomain of your company to external Managed Nextcloud.

---

<div class="post-metadata">

**Author:** ![John\_Wayne](https://help.nextcloud.com/user_avatar/help.nextcloud.com/john_wayne/32/68908_2.png) [@John\_Wayne](https://help.nextcloud.com/u/John_Wayne)\
**Post date:** [December 16, 2025, 1:08pm UTC](https://help.nextcloud.com/t/allowing-public-share-links-for-private-instance/234817/3 "2025-12-16T13:08:47Z")

</div>

Hi,

I am currently working on something like that, for my home use. Here’s what I have done, maybe some ideas are helpful to you. Though I have it not yet working unfortunately.

Access to my Nextcloud instance is secured via Tailscale @ [https://nextcloud.mytailnet.ts.net](https://nextcloud.mytailnet.ts.net). Public share links start at the /s/ route. So I’ve heard people advocating Cloudflare Tunnels for this use case.

I set up Cloudflare Tunnel with [https://public-nextcloud-share.mydomain.tld](https://public-nextcloud-share.mydomain.tld) to route any traffic going to the /s/ route to my NGINX which then forwards to my instance that is secured by Tailscale.

This appeared to work at first, however, when I open eg [https://public-nextcloud-share.mydomain.tld](https://public-nextcloud-share.mydomain.tld)/s/fpwjstoijtoi5jtoj43otj43t43 on a public device, The page is broken and there are lots of Javascript errors in the console, because assets coming from the /dist folder could not be loaded. I set-up Cloudflare to only forward traffic to [https://public-nextcloud-share.mydomain.tld](https://public-nextcloud-share.mydomain.tld)/s/ to NGINX and drop (404) all other traffic. So I know its because of the Cloudflare Tunnel config but I don’t know how else to allow only traffic destined for the public share endpoint.

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [March 16, 2026, 1:09pm UTC](https://help.nextcloud.com/t/allowing-public-share-links-for-private-instance/234817/4 "2026-03-16T13:09:08Z")

</div>

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