filebrowser-docker
filebrowser-docker copied to clipboard
How to disable authentication?
How to disable authentication?
You can set this environment variable:
FB_NOAUTH=noauth
this is not working for me
this is not working for me either
same here, not working for me - could this get a higher prior please ?
Commenting to say I came looking for a possible solution. I'm just running with u:guest p:pass for now.
What have you tried and what doesn't work exactly? There's a section in the documentation.
I just tried that method by using sh in the container but it says 'filebrowser not found.' I tried using an env variable in some different ways like:
FB_NOAUTH=true or FB_AUTH.METHOD=noauth
but no dice.
# Init the database
docker run -it --rm -v `pwd`:/config hurlenko/filebrowser:latest -d /config/filebrowser.db config init --auth.method=noauth
# Add a user
docker run -it --rm -v `pwd`:/config hurlenko/filebrowser:latest -d /config/filebrowser.db users add username password --perm.admin
# Run
docker run -it --rm -p 8080:8080 -v `pwd`:/config hurlenko/filebrowser:latest
Thanks! im using this and AriaNg on my server. youre doing a great job. :)
( v2.22.4 ) My mistake - I tried adding them as docker env variables... :-( thank you for the docker commands - I will try them out asap
( v2.22.4 ) My mistake - I tried adding them as docker env variables... :-( thank you for the docker commands - I will try them out asap
Did you found a solution? I'm trying to do it in docker-compose no solution :\
I use both
FB_NOAUTH=true
FB_AUTH.METHOD=noauth
username use noauth
Tried this on TrueNAS Scale VM
Any solution how to do it via docker-compose.yaml?
Hi, I'm a bit late to the party but i hope this helps, in docker compose you can config all the environment variables defined here, i was able to config the "noauth" like this:
services:
filebrowser:
image: hurlenko/filebrowser
container_name: filebrowser
restart: always
ports:
- 8080:8080
volumes:
- ./data/explorer:/data
- ./data/conf:/config
environment:
- FB_NOAUTH=true
but this won't work if it's not the the first time you run the container (i.e. the filebrowser.db file is already created in the container's /data folder), so it's important that you delete this file and then restart the compose file to make it work.