filebrowser-docker icon indicating copy to clipboard operation
filebrowser-docker copied to clipboard

How to disable authentication?

Open cinetube opened this issue 4 years ago • 15 comments

How to disable authentication?

cinetube avatar Oct 17 '21 05:10 cinetube

You can set this environment variable: FB_NOAUTH=noauth

jo75 avatar Jan 25 '22 10:01 jo75

this is not working for me

unxplained avatar Mar 01 '22 05:03 unxplained

this is not working for me either

francis-sousa avatar Mar 07 '22 16:03 francis-sousa

same here, not working for me - could this get a higher prior please ?

ghost avatar Sep 16 '22 08:09 ghost

Commenting to say I came looking for a possible solution. I'm just running with u:guest p:pass for now.

ghost avatar Sep 17 '22 09:09 ghost

What have you tried and what doesn't work exactly? There's a section in the documentation.

hurlenko avatar Sep 17 '22 11:09 hurlenko

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.

ghost avatar Sep 17 '22 19:09 ghost

# 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

hurlenko avatar Sep 18 '22 07:09 hurlenko

Thanks! im using this and AriaNg on my server. youre doing a great job. :)

ghost avatar Sep 18 '22 09:09 ghost

( 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

ghost avatar Sep 19 '22 12:09 ghost

( 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 :\

luckyzor avatar Sep 26 '22 15:09 luckyzor

I use both

FB_NOAUTH=true
FB_AUTH.METHOD=noauth

username use noauth

Tried this on TrueNAS Scale VM

PikachuEXE avatar Dec 29 '22 07:12 PikachuEXE

Any solution how to do it via docker-compose.yaml?

BenRoe avatar Jan 11 '24 13:01 BenRoe

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.

MaxiStarling56 avatar Mar 23 '24 19:03 MaxiStarling56