File Browser

Filebrowser on Docker » EasyCode

File Browser

Installation

curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash

Configuration

mkdir /azat/home/filebrowser && cd /azat/home/filebrowser
filebrowser config init -c /home/azat/filebrowser/config.json -d /home/azat/filebrowser/filebrowser.db
nano config.json
{
  "port": 8080,
  "baseURL": "",
  "address": "0.0.0.0",
  "log": "stdout",
  "database": "/home/azat/filebrowser/filebrowser.db",
  "root": "/mnt"
}

Users

filebrowser -c /home/azat/filebrowser/config.json -d /home/azat/filebrowser/filebrowser.db users add azat <passwd>

Running

[Unit]
Description=File Browser
Description=File Browser
After=multi-user.target

[Service]
Type=idle

WorkingDirectory=/home/azat/filebrowser/
ExecStart=filebrowser -c /home/azat/filebrowser/config.json -d /home/azat/filebrowser/filebrowser.db
Restart=always

[Install]
WantedBy=multi-user.target
sudo cp ./filebrowser.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl start filebrowser.service
sudo systemctl enable filebrowser.service
sudo systemctl status filebrowser.service