Possible to override the host-detection behaviour in sharing links creation?

flo lml 2 years ago updated by Vlad R 2 years ago 3


I just set up FileRun on my server with the docker image, it works great! I have a weird question though:

Here's my situation: I access all the services on my server almost only locally, through a nginx reverse proxy with a https://service.localhostname.lan address. I have only a few services accessible from the outside, with a **https://**service.otherhostname.com address.

Thus, my goal is to have a https://filerun.localhostname.lan proxy which allows me to create sharing links, and then give these links to my family so that they can download from https://otherhostname.com/?id=555555555

So far, so good, it works as expected. However, when I create a link (from the localhostname.lan), it inherits this hostname, which is not accessible to my friends from the outside. I thus have to edit the hostname before sending them a link. So that's fine as is, but it would be awesome if I could have it always automatically generate the correct links. Is there any way to do this?

Also, where are the error pages located (such as "this file is not available anymore) if one wants to edit the messages displayed?

Thank you!!


You can hardcode the hostname, but only for the entire application, so I am afraid there is no solution like you are asking for.

how would you go hardcoding the hostname?