richdocuments icon indicating copy to clipboard operation
richdocuments copied to clipboard

Add support to add domains/hostnames in wopi allow list.

Open JMarcosHP opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Nextcloud setups with dynamic IP need to update the wopi allow list every time the public IP changes or need to execute external scripts to keep the list updated.

Describe the solution you'd like Using domains that point to the current public IP with ddns services like cloudflare api, duck dns, etc. Can fix this issue.

Describe alternatives you've considered Unset wopi allow list (not recommended).

Additional context This

And this

JMarcosHP avatar Oct 17 '24 23:10 JMarcosHP

I would love to get this!

And others seem too:

  • https://help.nextcloud.com/t/nextcloud-office-wopi-allow-list-for-setups-with-dynamic-ip/160506
  • https://github.com/HammyHavoc/nextcloud-wopi-allowlist-dynamic-ip-updater

I am not familiar with php and would not be able to add this by my self but I did a bit of research: It appears that more or less the only thing that would need to be edited would be this function https://github.com/nextcloud/richdocuments/blob/7c834da4c8567309b7f57da7aef547f006303a0d/lib/Middleware/WOPIMiddleware.php#L94-L108

JL710 avatar Nov 10 '24 10:11 JL710