Skip to content

Reverse Proxy or noauth is not bypassing the login page of Filebrowser. #2100

@kondasandeep13

Description

@kondasandeep13

Description

I was trying to implement the reverse proxy using docker image and as well as using source code.

I created a container from filebrowser/filebrowser image and using the config "filebrowser.json" with the below content.

Docker Command:
docker run -itd -v ~/.filebrowser.json:/.filebrowser.json -p 8080:80 --name filebrowser filebrowser/filebrowser

.file_browser.json
{
"port": 80,
"authMethod": "proxy",
"authHeader": "username",
"baseURL": "",
"address": "",
"log": "stdout",
"database": "/database.db",
"root": "/srv"
}

Expected behaviour

Expected to bypass the login of filebrowser I expect that after reverse proxy auth succeeds then the username header is passed to filebrowser with the authenticated username which will then log me in automatically.

What is happening instead?

After running the container with the above config, It still shows the Filebrowser login page on the client browser.

Additional context

I have tried with the source code as well, But still it lands on the same login page.

$ filebrowser.exe config set --auth.method=proxy --auth.header=username
Sign up: false
Create User Dir: false
Auth method: proxy
Shell:

Branding:
Name:
Files override:
Disable external links: false
Color:

Server:
Log: stdout
Port: 8080
Base URL:
Root: .
Socket:
Address: 127.0.0.1
TLS Cert:
TLS Key:
Exec Enabled: false

Defaults:
Scope: .
Locale: en
View mode: list
Single Click: false
Commands:
Sorting:
By: name
Asc: false
Permissions:
Admin: false
Execute: true
Create: true
Rename: true
Modify: true
Delete: true
Share: true
Download: true

Auther configuration (raw):

{
"header": "username"
}
Additional Info

I have tried using auth.method=noauth , It still shows the login page using noauth.
Expected behavior is should not show Filebrowser default login page.

Please help me out to fix this ASAP.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions