richdocumentscode icon indicating copy to clipboard operation
richdocumentscode copied to clipboard

richproxy opens only the 1st ip/domain and drops all the others (until reboot)

Open sh0ra1t opened this issue 3 years ago • 3 comments

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!

sh0ra1t avatar Jul 28 '22 17:07 sh0ra1t

this error according to php is related to the fread of the variable $local.

image

sh0ra1t avatar Jul 28 '22 17:07 sh0ra1t

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.

thebearon avatar Dec 13 '22 16:12 thebearon

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.

joshtrichards avatar Nov 12 '23 14:11 joshtrichards