Hey @Joulinar, I’ve read that article and tried setting up a reverse proxy with nginx. I have this working and I can get routed to a custom path - like /filebrowser - but the page never loads. In the GitHub issues page, people set “baseURL” to their path but this option is done with a json config. Does the Dietpi FileBrowser support this?
i have been searching for the *.json config file but there is none
so i read Authentication Method - File Browser on the filesbrowser website
but i do not know where and how i need to enter the cmds listed
i have tried on /opt/filebrowser/filebrowser but i got an error
if you could explain how to make an config.json file that would be more helpfull for me because
the cmdline its like abracadabra to me
@Joulinar Hello Sir, I’m attempting to change the default port of Filebrowser from 8084 to 80 to allow usage over the internet with my domain. I successfully completed port forwarding and set all necessary router rules, and the default Apache page is now accessible on the internet. However, when I try to access Filebrowser, it is not working. I used the following config:
and restart the filebrowser service nothing happens I even tested by uninstalling the apache and retrying everything but to no avail. Please help.
You can not run two services on the same port. You would need to stop apache (which is listening on port 80 and 443) and then start filebrowser on that port. Or you use a reverse proxy, so filebrowser is still running on port 8084 but you can reach it then via your domain, like https://mydomain.net/filebrowser
Sir, I tried many things but unfortunately it didn’t bind to port 80/443 somehow. It will easily bind to any port like 8081, 8082, 6423…
So I ended up using the apache reverse proxy. Now I just need to add /files at the end of my url. and that’s it. I think I should use a simple Js file to redirect to /files from the Home page immediately once someone visits the main URL. That’s what I can think of as a temporary solution for now.
You can also set up a redirect from the web root to /files or even make the /files path the web root, with apache.
So you don’t need to use JS as a workaround.
Feb 04 22:09:47 DietPiR5S filebrowser[3467]: 2023/02/04 22:09:47 No config file used
Feb 04 22:09:47 DietPiR5S filebrowser[3467]: 2023/02/04 22:09:47 Listening on [::]:80