nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
355 stars 116 forks source link

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

Open JMarcosHP opened 3 weeks ago

JMarcosHP commented 3 weeks ago

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

JL710 commented 3 days ago

I would love to get this!

And others seem too:

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