0
Answered

URL external editors invalid

pixilarion 4 months ago updated 4 months ago 5

First of all, a big thank you for this amazing piece of software. I installed Filerun using the docker repo, which went almost without a hitch.


Now I'm stuck trying to get the external viewers/editors (Office Web View, Office, OnlyOffice, Google Docs Editor, Google Docs Viewer etc.) to work. They just keep me throwing errors at me. To my surprise Office was the most verbose about the error, stating that the file was not reachable at https://my_filerun_url/wl/rw/something_random/file.docx.


FYI, I'm running Filerun behind a traefik reverse proxy. I don't know if it is related but I saw on this forum in some old post something about mod_rewrite from Apache.

I'm at a loss how to get this right. Maybe I did overlook something, but it seems to me that there aren't any log files to dig through? Any idea how to tackle this problem would be much appreciated.

Answer

Answer
Answered

Office Web Viewer, Google Docs Viewer, ONLYOFFICE <- they all require access to the web server hosting FileRun, in order to download the document. So these won't work if you access FileRun via "localhost", or some other local name or IP address. (ONLYOFFICE can work with "localhost" if it is installed on the same machine and not in a container)

Google Docs Editor or Zoho however do not require access, as it is FileRun that does the uploading in this case.

I used OnlyOffice as my editor and could not get it to work unless I also put OnlyOffice behind the proxy as well. I was using Nginx. 

Answer
Answered

Office Web Viewer, Google Docs Viewer, ONLYOFFICE <- they all require access to the web server hosting FileRun, in order to download the document. So these won't work if you access FileRun via "localhost", or some other local name or IP address. (ONLYOFFICE can work with "localhost" if it is installed on the same machine and not in a container)

Google Docs Editor or Zoho however do not require access, as it is FileRun that does the uploading in this case.

I understand that my localhost would not be reachable for a webviewer. Like I said (I am running Filerun behind traefik), this is not the case, so unfortunately your answer is not an answer to my case.

I have a publicly accessible URL (my dynamic ip is exposed via duckdns, for example https://filerun.mysubdomain.duckdns.org) for my Filerun installation. So mysubdomain.duckdns.org is pointing to my public IP. Traefik is taking care of it that requests to filerun.mysubdomain.duckdns.org get routed to my filerun-docker-container. This is working fine.

It seems that Filerun is generating a URL for a file I would like to preview/edit with an external editor (for example https://filerun.mysubdomain.duckdns.or/wl/rw/something_random/file.docx), only this URL is not valid although the rest of my Filerun installation is perfectly accessible from the web. This URL should be accessible for the external editors but they all (including Google Docs Editor that hangs indicating it is uploading the file to Google, haven't tried Zoho yet) keep throwing errors.

So it seems to me that something is going wrong when Filerun tries to generate a custom URL to edit the file?

(for example https://filerun.mysubdomain.duckdns.or/wl/rw/something_random/file.docx), only this

That type of URL applies for only one option, that is "Office", when you open with MS Office apps installed on your desktop. It does not apply to any other option.

Are you able to share files via web links?

Yes, sharing files via web links is working. Just tested it using a shared link in a private browser window to make sure I wasn't logged into Filerun.