richproxy opens only the 1st ip/domain and drops all the others (until reboot)
Example: richdocumentscode into a Nextcloud server and try to open a document. When the server boot I will open a file.
https://domain.dedyn.io/apps/files/?dir=/&fileid=40
It will work.
Then if you try: https://192.168.1.100/apps/files/?dir=/&fileid=40 or https://<public_ip_address>/apps/files/?dir=/&fileid=40 It will fail.
If you reboot the server and then open a file once again but now in intranet first:
https://192.168.1.100/apps/files/?dir=/&fileid=40
It will work.
Then if you try: https://192.168.1.100/apps/files/?dir=/&fileid=40 or https://<public_ip_address>/apps/files/?dir=/&fileid=40 It will fail.
richproxy saves the first entry and discard all the others.
if you can fix this it will be great because sometimes its needed to perform calls from external and internal networks.
thank you!
this error according to php is related to the fread of the variable $local.

This is due to the multihost configuration options, which, if not configured otherwise, allows the WOPI host the first request came from, but not from further ones. The problem is that the built-in CODE server can't be configured like an actual CODE setup, so I'm not sure this could be solved easily.
As a workaround, you could use CODE from packages or from Docker.
if you can fix this it will be great because sometimes its needed to perform calls from external and internal networks.
Split horizon DNS might be another option. In that way, the hostname (in the URL) doesn't change, but your DNS resolver will get the internal IP when on the internal network and the external one when outside.