Skip to content

docs(admin): document share link URL behaviour with multiple trusted domains#14989

Open
skjnldsv wants to merge 1 commit into
masterfrom
fix/multi-hostname-share-link-urls
Open

docs(admin): document share link URL behaviour with multiple trusted domains#14989
skjnldsv wants to merge 1 commit into
masterfrom
fix/multi-hostname-share-link-urls

Conversation

@skjnldsv
Copy link
Copy Markdown
Member

☑️ Resolves

What and why

When multiple trusted_domains are configured, Nextcloud generates URLs
(share links, download links, notifications) using the hostname from the
incoming request. In split-horizon DNS or dual-access setups (internal
cloud.local + external cloud.example.com), share links created
internally contain the internal hostname and break for external users.

The fix (overwritehost + overwrite.cli.url) was already mentioned
elsewhere in the docs but the connection to this specific problem was never
made explicit. This adds a dedicated subsection to
reverse_proxy_configuration.rst explaining the behaviour and showing
the correct config.

🖼️ Screenshots

No visual/layout changes — prose and code block addition only.

✅ Checklist

  • I have built the documentation locally and reviewed the output
  • Screenshots are included for visual changes
  • I have not moved or renamed pages (or added a redirect if I did)
  • I have run codespell or similar and addressed any spelling issues

…domains

When multiple trusted_domains are configured, generated URLs (share links,
download links, notifications) use the hostname from the incoming request.
This is a common source of confusion for admins running split-horizon DNS
or dual internal/external access, as share links created internally contain
the internal hostname and break for external users.

Add a new subsection to reverse_proxy_configuration.rst explaining the
behaviour and showing how to force a canonical hostname via overwritehost
and overwrite.cli.url.

Fixes #11623

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>

When multiple entries are listed in ``trusted_domains``, Nextcloud accepts
requests on all of them but generates URLs based on the hostname of each
incoming request. This means share links, download URLs, and notification
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For share link, isn't the URL build when the user copies it from the web UI and not at creation time?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, only the token. On copy it's being assembled iirc

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then the sentence and paragraph below are false

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really, people usually copy them when they create a link and send it to people. Same for mail. Maybe I should rephrase 🤔

I guess I could say "copied" instead of "created" ? Do you think that would be clear enough ?

@github-actions
Copy link
Copy Markdown
Contributor

📖 Documentation Preview

🔍 Open preview →

📄 1 changed documentation page

Last updated: Thu, 21 May 2026 11:04:55 GMT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Impact of using multiple hostnames (on share links)

2 participants