adrianschubek / dir-browser

Directory Browser - Browse your files and folders on the web. Easy Docker setup.
https://dir.adriansoftware.de
MIT License
12 stars 4 forks source link

add a icon for website #14

Open zoumingzhe opened 2 months ago

zoumingzhe commented 2 months ago

It's always inconvenient for me to deploy multiple dockers without icons.

zoumingzhe commented 2 months ago

We need to have at least one default icon, and it's best to allow the icon file to be mounted.

adrianschubek commented 2 months ago

You mean a custom favicon, right? image This is a good idea.

zoumingzhe commented 2 months ago

yes

You mean a custom favicon, right? image This is a good idea.

adrianschubek commented 2 months ago

I noticed that it should already work. When you mount a folder -v /foobar:/var/www/html/public then place the icon in /foobar/favicon.ico and it will be displayed on all pages. image

You can also hide the favicon.ico in the file browser by creating a /foobar/favicon.ico.dbmeta.json with the content

{
"hidden": true
}
zoumingzhe commented 2 months ago

can load the icon from .favicon.ico, we can default hidden all files and folders that starting with "."

just like: https://docs.directorylister.com/configuration/app-config-reference#hide_dot_files

adrianschubek commented 2 months ago

we can default hidden all files and folders that starting with "."

It is possible to hide all files starting with a dot using -e IGNORE=".*" https://dir.adriansoftware.de/v3/configuration/ignore#examples But yes I need to improve the documentation.

zoumingzhe commented 2 months ago

we can default hidden all files and folders that starting with "."

It is possible to hide all files starting with a dot using -e IGNORE=".*" https://dir.adriansoftware.de/v3/configuration/ignore#examples But yes I need to improve the documentation.

great