https://github.com/marcopiovanello/filebrowser
lightweight filebrowser
https://github.com/marcopiovanello/filebrowser
Last synced: 3 months ago
JSON representation
lightweight filebrowser
- Host: GitHub
- URL: https://github.com/marcopiovanello/filebrowser
- Owner: marcopiovanello
- Created: 2023-05-29T09:04:06.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-01T12:26:10.000Z (almost 2 years ago)
- Last Synced: 2025-02-19T13:27:48.017Z (3 months ago)
- Language: Go
- Size: 69.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# filebrowser
A lightweight minimalistic filebrowser.

## Installation
```shell
# download latest release for your arch
# edit db.json# -r -> root directory
# -p -> port to listen at
# -db -> database file path (user must have read permissions)filebrowser --db /var/filebrowser/db.json -r /mnt/downloads -p 8080
```This filebrowser is intended to be used behind a reverse proxy like Caddy and served through HTTPS (if you're a security maniac like me).
## JSONDB file database
```json5
// Default entry for db.json
// uid can be anything
// password is a bcrypt hashed password,
// the following example is bcrypt hashed "adminadmin"
// role: 0 -> admin; 1 -> user
[
{
"uid": "1",
"username": "admin",
"password": "$2a$12$ER0Jhb1BRriXnoD7DR39WO388vpWO/4DYPy06G58JsLXmZKkezr3i",
"role": 0
}
]
```Golang is king.