hurlenko / filebrowser-docker

🐳 filebrowser inside Docker container
303 stars 29 forks source link

How to disable authentication? #13

Open cinetube opened 3 years ago

cinetube commented 3 years ago

How to disable authentication?

jo75 commented 2 years ago

You can set this environment variable: FB_NOAUTH=noauth

unxplained commented 2 years ago

this is not working for me

francis-sousa commented 2 years ago

this is not working for me either

ghost commented 2 years ago

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

ghost commented 2 years ago

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

hurlenko commented 2 years ago

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

ghost commented 2 years ago

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.

hurlenko commented 2 years ago
# 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
ghost commented 2 years ago

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

ghost commented 2 years ago

( 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

luckyzor commented 2 years ago

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

PikachuEXE commented 1 year ago

I use both

FB_NOAUTH=true
FB_AUTH.METHOD=noauth

username use noauth

Tried this on TrueNAS Scale VM

BenRoe commented 10 months ago

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

MaxiStarling56 commented 7 months ago

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.

waqaslam commented 1 month ago

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.

Thanks for the filebrowser.db tip. After removing the file, it worked